From ade81b769163a1fb6b2b1fb88c4510c8a8142b36 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Mon, 19 Feb 2024 10:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=20uvicorn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gunicorn.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn.service b/gunicorn.service index faa0649..0ae9d16 100644 --- a/gunicorn.service +++ b/gunicorn.service @@ -10,7 +10,7 @@ Group=root RuntimeDirectory=gunicorn WorkingDirectory=/code/dingxin_toolbox_drf -ExecStart=/code/dingxin-server/bin/gunicorn -c /code/dingxin_toolbox_drf/gunicorn_config.py dingxin_toolbox_drf.wsgi:application +ExecStart=/code/dingxin-server/bin/gunicorn -c /code/dingxin_toolbox_drf/gunicorn_config.py -k uvicorn.workers.UvicornWorker dingxin_toolbox_drf.asgi:application ExecReload=/bin/kill -s hup $mainpid ExecStop=/bin/kill -s quit $mainpid PrivateTmp=true