diff --git a/tools/prod-django.sh b/tools/prod-django.sh index 976075ea..7218944c 100755 --- a/tools/prod-django.sh +++ b/tools/prod-django.sh @@ -31,4 +31,10 @@ if [[ -n "${ADMIN_USERNAME}" ]] && [[ -n "${ADMIN_PASSWORD}" ]] && [[ -n "${ADMI fi echo "Starting django" -gunicorn --bind="${HOST:-0.0.0.0}:${PORT:-8000}" --workers="${WORKERS:-4}" config.wsgi --timeout 300 +gunicorn \ + --bind="${HOST:-0.0.0.0}:${PORT:-8000}" \ + --workers="${WORKERS:-4}" \ + --timeout=300 \ + --capture-output \ + --log-level info \ + config.wsgi diff --git a/tools/run.sh b/tools/run.sh index 9f52cd45..81a9d715 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -35,8 +35,13 @@ if [[ -n "${ADMIN_USERNAME}" ]] && [[ -n "${ADMIN_PASSWORD}" ]] && [[ -n "${ADMI fi echo "Starting django" -# gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-4}" app.wsgi --timeout 300 -gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" config.wsgi --timeout=300 & +gunicorn \ + --bind="0.0.0.0:${PORT:-8000}" \ + --workers="${WORKERS:-1}" \ + --timeout=300 \ + --capture-output \ + --log-level info \ + config.wsgi & gunicorn_pid="$!" echo "Starting celery"