From d126fdbd32f1ebfd8b5ae2913324919c3618afdb Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 31 Oct 2024 00:21:47 +0800 Subject: [PATCH] Move back to Gunicorn --- start.sh => scripts/start.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename start.sh => scripts/start.sh (76%) diff --git a/start.sh b/scripts/start.sh similarity index 76% rename from start.sh rename to scripts/start.sh index 79ebf34..955f2de 100644 --- a/start.sh +++ b/scripts/start.sh @@ -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