From f9ddc2ffc291df509dbd8a2947aac6fc66acb966 Mon Sep 17 00:00:00 2001 From: CCarpo Date: Wed, 30 Jul 2025 14:29:25 +0200 Subject: [PATCH] use the FLASK_HOST variable as declared in the documentation (#205) I noticed that the FLASK_HOST was not used as stated in the documentation. I need it so that FLASK is listening on my IPv6 address. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a596ef4..8b3402b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -107,7 +107,7 @@ make_writable /cwa-book-ingest # Set the command to run based on the environment is_prod=$(echo "$APP_ENV" | tr '[:upper:]' '[:lower:]') if [ "$is_prod" = "prod" ]; then - command="gunicorn -t 300 -b 0.0.0.0:${FLASK_PORT:-8084} app:app" + command="gunicorn -t 300 -b ${FLASK_HOST:-0.0.0.0}:${FLASK_PORT:-8084} app:app" else command="python3 app.py" fi