调试 uvicorn

main
RogerWork 9 months ago
parent 13ed65a2fb
commit da3c9f6911
  1. 2
      dingxin_toolbox_drf/settings.py
  2. 2
      gunicorn.service

@ -44,7 +44,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'rest_framework', 'rest_framework',
'channels', 'channels',
'daphne', # 'daphne',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'corsheaders', # coreapi生成接口文档 'corsheaders', # coreapi生成接口文档
'rest_framework.authtoken', # Token验证应用 'rest_framework.authtoken', # Token验证应用

@ -10,7 +10,7 @@ Group=root
RuntimeDirectory=gunicorn RuntimeDirectory=gunicorn
WorkingDirectory=/code/dingxin_toolbox_drf 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 ExecReload=/bin/kill -s hup $mainpid
ExecStop=/bin/kill -s quit $mainpid ExecStop=/bin/kill -s quit $mainpid
PrivateTmp=true PrivateTmp=true

Loading…
Cancel
Save