upload with PUT allows streaming

This commit is contained in:
2023-08-20 10:44:16 +03:00
parent 07aafd746d
commit 654891a61e
6 changed files with 110 additions and 60 deletions

View File

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