upload with PUT allows streaming
This commit is contained in:
@@ -8,6 +8,7 @@ export FLASK_CONF="/data/config.json"
|
||||
export SERVER=gunicorn
|
||||
export PID="flees.pid"
|
||||
export WORKERS
|
||||
export TIMEOUT
|
||||
|
||||
if [[ $( stat -c %u /data ) -ne $( id -u ) ]]; then
|
||||
echo User id and /data folder owner do not match
|
||||
@@ -19,4 +20,4 @@ set -eu
|
||||
. /opt/venv/bin/activate
|
||||
sh ./init_db.sh "$FLASK_DB"
|
||||
|
||||
exec "$SERVER" -w $WORKERS 'app:app' --pid="$PID" -b 0.0.0.0:5000
|
||||
exec "$SERVER" -w $WORKERS --timeout $TIMEOUT 'app:app' --pid="$PID" -b 0.0.0.0:5000
|
||||
|
||||
Reference in New Issue
Block a user