allow internal port change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user