Django multi worker, logging pid
This commit is contained in:
@@ -4,5 +4,7 @@ if [ "${DJANGO_DEBUG}" = true ] | [ "${DJANGO_DEBUG}" == "True" ]; then
|
||||
echo "Running in DEBUG mode"
|
||||
gunicorn core.wsgi:application --reload --log-level debug --bind 0.0.0.0:8000 --timeout 600 & python manage.py scheduler_worker high default low
|
||||
else
|
||||
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 600 & python manage.py scheduler_worker high default low
|
||||
echo "Running in PROD mode"
|
||||
# Multi-worker
|
||||
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 600 & python manage.py scheduler_worker default high & python manage.py scheduler_worker low
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user