mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 03:08:52 +02:00
Run ASGI server instead of WSGI
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -8,7 +8,20 @@ python manage.py loaddata initial
|
||||
nginx
|
||||
|
||||
if [ "$TFJM_STAGE" = "prod" ]; then
|
||||
gunicorn -b 0.0.0.0:8000 --workers=2 --threads=4 --worker-class=gthread tfjm.wsgi --access-logfile '-' --error-logfile '-';
|
||||
gunicorn -b 0.0.0.0:8000 \
|
||||
--workers=2 \
|
||||
--threads=4 \
|
||||
--worker-class=uvicorn.workers.UvicornWorker \
|
||||
tfjm.asgi \
|
||||
--access-logfile '-' \
|
||||
--error-logfile '-'
|
||||
else
|
||||
python manage.py runserver 0.0.0.0:8000;
|
||||
gunicorn -b 0.0.0.0:8000 \
|
||||
--workers=2 \
|
||||
--threads=4 \
|
||||
--worker-class=uvicorn.workers.UvicornWorker \
|
||||
tfjm.asgi \
|
||||
--access-logfile '-' \
|
||||
--error-logfile '-' \
|
||||
--reload
|
||||
fi
|
||||
|
Reference in New Issue
Block a user