diff --git a/dingxin_toolbox_drf/settings.py b/dingxin_toolbox_drf/settings.py index 696fe1f..541b71b 100644 --- a/dingxin_toolbox_drf/settings.py +++ b/dingxin_toolbox_drf/settings.py @@ -44,7 +44,7 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'rest_framework', 'channels', - 'daphne', + # 'daphne', 'django.contrib.staticfiles', 'corsheaders', # coreapi生成接口文档 'rest_framework.authtoken', # Token验证应用 diff --git a/gunicorn.service b/gunicorn.service index faa0649..1e673d5 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 -k -k uvicorn.workers.UvicornWorker -c /code/dingxin_toolbox_drf/gunicorn_config.py dingxin_toolbox_drf.wsgi:application ExecReload=/bin/kill -s hup $mainpid ExecStop=/bin/kill -s quit $mainpid PrivateTmp=true