Skip to content
Snippets Groups Projects
Verified Commit 2da29ea5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Deploy using uvicorn instead

parent 73cfcbd1
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ After=network.target ...@@ -6,7 +6,7 @@ After=network.target
User=retribute User=retribute
WorkingDirectory=/srv/retribute/api WorkingDirectory=/srv/retribute/api
EnvironmentFile=/srv/retribute/.env EnvironmentFile=/srv/retribute/.env
ExecStart=/srv/retribute/venv/bin/daphne 127.0.0.1 -p 8091 config.asgi:application --proxy-headers ExecStart=/srv/retribute/venv/bin/gunicorn config.asgi:application -w 4 -k uvicorn.workers.UvicornWorker -b 127.0.0.1:8091
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
...@@ -27,6 +27,8 @@ install_requires = ...@@ -27,6 +27,8 @@ install_requires =
redis redis
channels channels
daphne daphne
gunicorn
uvicorn
channels_redis channels_redis
django django
django-environ django-environ
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment