Attempt using async workers to fix #72

This commit is contained in:
Anna Sidwell 2018-10-13 14:28:38 -04:00
parent acfbb513de
commit 59e68ae771
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ services:
- /containers/map/gunicorn.sock:/app/gunicorn.sock
env_file:
- ./environment
command: /bin/sh -c "DEBUG=1 python3 manage.py collectstatic --noinput && python3 manage.py compilemessages && python3 manage.py migrate && gunicorn --bind 0.0.0.0:8000 ojusomap.wsgi"
command: /bin/sh -c "DEBUG=1 python3 manage.py collectstatic --noinput && python3 manage.py compilemessages && python3 manage.py migrate && gunicorn --bind 0.0.0.0:8000 --worker-class gevent ojusomap.wsgi"
db:
restart: always

View File

@ -25,7 +25,8 @@ django-registration-redux==1.6
django-storages==1.6.5
djangorestframework==3.6.3
djangorestframework-gis==0.11.2
gunicorn==19.7.1
gunicorn==19.9.0
gevent>=0.13
olefile==0.44
packaging==16.8
Pillow==4.1.1