1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +00:00

🔧 Use WSGI with 4 workers instead of ASGI

This commit is contained in:
Steffo 2021-11-08 16:34:49 +01:00 committed by Stefano Pigozzi
parent 4111d56c06
commit 3a883500cf

View file

@ -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