From 6c7f3be7854e8b647cb26ac9b178fc3ee3ba1f53 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch <p.jentsch@uni-bielefeld.de> Date: Wed, 15 Sep 2021 15:26:13 +0200 Subject: [PATCH] Let gunicorn print access log to the terminal --- boot.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/boot.sh b/boot.sh index 6d3a57e8..bbca6652 100755 --- a/boot.sh +++ b/boot.sh @@ -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 -- GitLab