allow internal port change
This commit is contained in:
@@ -4,6 +4,7 @@ SQLITE=sqlite3
|
|||||||
|
|
||||||
export FLASK_DATAFOLDER="/data"
|
export FLASK_DATAFOLDER="/data"
|
||||||
export FLASK_DB="/data/flees.db"
|
export FLASK_DB="/data/flees.db"
|
||||||
|
export INTERNAL_PORT="${INTERNAL_PORT:-5000}"
|
||||||
export SERVER=gunicorn
|
export SERVER=gunicorn
|
||||||
export PID="flees.pid"
|
export PID="flees.pid"
|
||||||
export WORKERS
|
export WORKERS
|
||||||
@@ -23,6 +24,6 @@ exec "$SERVER" \
|
|||||||
-w $WORKERS \
|
-w $WORKERS \
|
||||||
--timeout $TIMEOUT \
|
--timeout $TIMEOUT \
|
||||||
--pid="$PID" \
|
--pid="$PID" \
|
||||||
-b 0.0.0.0:5000 \
|
-b 0.0.0.0:$INTERNAL_PORT \
|
||||||
'app:app' \
|
'app:app' \
|
||||||
2>&1 | tee -a /data/flees.log
|
2>&1 | tee -a /data/flees.log
|
||||||
|
|||||||
Reference in New Issue
Block a user