added failsafe to keep container up if python is so broke it kills gunicorn on init
This commit is contained in:
@@ -5,5 +5,7 @@ if [ "$FLASK_ENV" == "production" ]; then
|
|||||||
else
|
else
|
||||||
cd /pybook_mapped_volume
|
cd /pybook_mapped_volume
|
||||||
gunicorn --bind=0.0.0.0:5000 --workers=1 --threads=1 main:app --env FLASK_ENV="$FLASK_ENV" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --enable-stdio-inheritance --reload
|
gunicorn --bind=0.0.0.0:5000 --workers=1 --threads=1 main:app --env FLASK_ENV="$FLASK_ENV" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --enable-stdio-inheritance --reload
|
||||||
|
# just in case it fails
|
||||||
|
sleep 10000
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user