mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-16 19:59:24 +08:00
Move back to Gunicorn
This commit is contained in:
parent
0184530802
commit
d126fdbd32
1 changed files with 1 additions and 3 deletions
|
@ -13,9 +13,7 @@ if [ "$RUN_TYPE" = "web" ]; then
|
|||
if [ "$BACKEND_DEBUG" = 'True' ]; then
|
||||
python manage.py runserver "0.0.0.0:8000"
|
||||
else
|
||||
# Feel free to replace the WSGI server here with something else
|
||||
# gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application # Gunicorn
|
||||
python -m granian --host 0.0.0.0 --port 8000 --workers 8 --interface wsgi config.wsgi:application # Granian
|
||||
gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application # Gunicorn
|
||||
fi
|
||||
elif [ "$RUN_TYPE" = "worker" ]; then
|
||||
celery -A config worker -l INFO -E --concurrency 1
|
Loading…
Reference in a new issue