From 5838ada2e338652a58be3701b20dc6d533fc5b0c Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 25 Aug 2024 22:44:45 +1000 Subject: [PATCH] remove port 5000 and use std 80, and use traefik to route correctly --- wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper.sh b/wrapper.sh index 28b1fdd..4291ac5 100755 --- a/wrapper.sh +++ b/wrapper.sh @@ -4,7 +4,7 @@ if [ "$FLASK_ENV" == "production" ]; then gunicorn --bind=0.0.0.0:80 --workers=2 --threads=2 main:app --env FLASK_ENV="production" --error-logfile /code/gunicorn.error.log --access-logfile /code/gunicorn.log --capture-output --enable-stdio-inheritance else cd /pybook_mapped_volume - gunicorn --bind=0.0.0.0:5000 --workers=1 --threads=1 main:app --env FLASK_ENV="$FLASK_ENV" --error-logfile /code/gunicorn.error.log --access-logfile /code/gunicorn.log --capture-output --enable-stdio-inheritance --reload + gunicorn --bind=0.0.0.0:80 --workers=1 --threads=1 main:app --env FLASK_ENV="$FLASK_ENV" --error-logfile /code/gunicorn.error.log --access-logfile /code/gunicorn.log --capture-output --enable-stdio-inheritance --reload # just in case it fails sleep 99999 fi