allow internal port change

This commit is contained in:
Ville Rantanen
2023-10-28 10:55:48 +03:00
parent bfacb5b78c
commit 10ba7ef02b

View File

@@ -4,6 +4,7 @@ SQLITE=sqlite3
export FLASK_DATAFOLDER="/data"
export FLASK_DB="/data/flees.db"
export INTERNAL_PORT="${INTERNAL_PORT:-5000}"
export SERVER=gunicorn
export PID="flees.pid"
export WORKERS
@@ -23,6 +24,6 @@ exec "$SERVER" \
-w $WORKERS \
--timeout $TIMEOUT \
--pid="$PID" \
-b 0.0.0.0:5000 \
-b 0.0.0.0:$INTERNAL_PORT \
'app:app' \
2>&1 | tee -a /data/flees.log