Move back to Gunicorn

This commit is contained in:
Keannu Bernasol 2024-10-31 00:21:47 +08:00
parent 0184530802
commit d126fdbd32

View file

@ -13,9 +13,7 @@ if [ "$RUN_TYPE" = "web" ]; then
if [ "$BACKEND_DEBUG" = 'True' ]; then if [ "$BACKEND_DEBUG" = 'True' ]; then
python manage.py runserver "0.0.0.0:8000" python manage.py runserver "0.0.0.0:8000"
else 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
# 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
fi fi
elif [ "$RUN_TYPE" = "worker" ]; then elif [ "$RUN_TYPE" = "worker" ]; then
celery -A config worker -l INFO -E --concurrency 1 celery -A config worker -l INFO -E --concurrency 1