remove port 5000 and use std 80, and use traefik to route correctly

This commit is contained in:
2024-08-25 22:44:45 +10:00
parent ad99be57e4
commit 5838ada2e3

View File

@@ -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