mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Enable hot code reloading
This commit is contained in:
parent
50892ce9fc
commit
719a652235
12
utils/run.sh
12
utils/run.sh
@ -8,4 +8,14 @@ if [ -z "$FLASK_DEBUG" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gunicorn -w 4 -b :5123 -e FLASK_APP=app/__init__.py -e FLASK_CONFIG=../config.cfg -e FLASK_DEBUG=$FLASK_DEBUG app:app
|
ENV="-e FLASK_APP=app/__init__.py -e FLASK_CONFIG=../config.cfg -e FLASK_DEBUG=$FLASK_DEBUG"
|
||||||
|
|
||||||
|
if [ "$FLASK_DEBUG" -eq "1" ]; then
|
||||||
|
EXTRA="--reload"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Running gunicorn with:"
|
||||||
|
echo " - env: $ENV"
|
||||||
|
echo " - extra: $EXTRA"
|
||||||
|
|
||||||
|
gunicorn -w 4 -b :5123 $ENV $EXTRA app:app
|
||||||
|
Loading…
Reference in New Issue
Block a user