Replaced gunicorn with daphne

This commit is contained in:
Eliot Berriot 2018-03-03 10:52:48 +01:00
parent 8dea9130af
commit 7f7a62cfa2
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 13 additions and 9 deletions

3
api/compose/django/daphne.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash -eux
python /app/manage.py collectstatic --noinput
/usr/local/bin/daphne --root-path=/app -b 0.0.0.0 -p 5000 config.asgi:application

View file

@ -1,3 +0,0 @@
#!/bin/sh
python /app/manage.py collectstatic --noinput
/usr/local/bin/gunicorn config.wsgi -w 4 -b 0.0.0.0:5000 --chdir=/app