From 0e902b1f04e90c3f06eb81dfc47512fa40bccd13 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 15 Sep 2024 01:05:54 +0800 Subject: [PATCH] Revert to Granian and remove bind mount for static files as that seems to just result in crashes --- docker-compose.demo.yml | 2 -- start.sh | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.demo.yml b/docker-compose.demo.yml index f2ab82b..803b6f2 100644 --- a/docker-compose.demo.yml +++ b/docker-compose.demo.yml @@ -10,8 +10,6 @@ services: environment: - PYTHONBUFFERED=1 - RUN_TYPE=web - volumes: - - ./backend/static:/code/backend/static depends_on: - postgres diff --git a/start.sh b/start.sh index ca30f44..79ebf34 100644 --- a/start.sh +++ b/start.sh @@ -13,8 +13,9 @@ if [ "$RUN_TYPE" = "web" ]; then if [ "$BACKEND_DEBUG" = 'True' ]; then python manage.py runserver "0.0.0.0:8000" else - gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application - # python -m granian --host 0.0.0.0 --port 8000 --workers 8 --interface wsgi config.wsgi:application + # 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 fi elif [ "$RUN_TYPE" = "worker" ]; then celery -A config worker -l INFO -E --concurrency 1