From 3a883500cf18006ef5463a585a3fd387877fd55c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 8 Nov 2021 16:34:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20WSGI=20with=204=20workers?= =?UTF-8?q?=20instead=20of=20ASGI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/docker_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/docker_start.sh b/backend/docker_start.sh index 6226bb2..57f856a 100644 --- a/backend/docker_start.sh +++ b/backend/docker_start.sh @@ -3,4 +3,4 @@ poetry run python -O ./manage.py migrate --no-input poetry run python -O ./manage.py collectstatic --no-input poetry run python -O ./manage.py initsuperuser -poetry run python -O -m gunicorn sophon.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 +poetry run python -O -m gunicorn sophon.wsgi:application --workers=4 --bind=0.0.0.0:8000