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

Replaced gunicorn with daphne

parent 8dea9130
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#!/bin/bash -eux
python /app/manage.py collectstatic --noinput
/usr/local/bin/gunicorn config.wsgi -w 4 -b 0.0.0.0:5000 --chdir=/app
\ No newline at end of file
/usr/local/bin/daphne --root-path=/app -b 0.0.0.0 -p 5000 config.asgi:application
import django
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
django.setup()
from .routing import application
......@@ -58,8 +58,6 @@ CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
# END SITE CONFIGURATION
INSTALLED_APPS += ("gunicorn", )
# STORAGE CONFIGURATION
# ------------------------------------------------------------------------------
# Uploaded Media Files
......
......@@ -21,4 +21,5 @@ RUN pip install -r /requirements/local.txt
COPY ./requirements/test.txt /requirements/test.txt
RUN pip install -r /requirements/test.txt
COPY . /app
WORKDIR /app
......@@ -4,7 +4,4 @@
# WSGI Handler
# ------------------------------------------------
# there's no python 3 support in stable, have to use the latest release candidate for gevent
gevent==1.1rc1
gunicorn==19.4.1
daphne==2.0.4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment