Let gunicorn print access log to the terminal

This commit is contained in:
Patrick Jentsch 2021-09-15 15:26:13 +02:00
parent 1b342d5159
commit 6c7f3be785

View File

@ -14,7 +14,13 @@ if [[ "${#}" -eq 0 ]]; then
echo "Deploy command failed, retrying in 5 secs..."
sleep 5
done
gunicorn $([ "${ENABLE_GUNICORN_RELOAD:-False}" == "True" ] && echo "--reload") --worker-class eventlet -b :5000 -w 1 nopaque:app
gunicorn \
--access-logfile - \
--error-logfile - \
$([ "${ENABLE_GUNICORN_RELOAD:-False}" == "True" ] && echo "--reload") \
--worker-class eventlet \
-b :5000 \
-w 1 nopaque:app
elif [[ "${1}" == "flask" ]]; then
exec ${@:1}
else