Add flask command switch to docker-entrypoint again

This commit is contained in:
Patrick Jentsch 2020-04-23 15:31:10 +02:00
parent d520184d1d
commit 606c8cf761

View File

@ -8,5 +8,11 @@ wait-for-it redis:6379 --strict --timeout=0
GUNICORN_WORKERS="${GUNICORN_WORKERS:-1}" GUNICORN_WORKERS="${GUNICORN_WORKERS:-1}"
source venv/bin/activate source venv/bin/activate
flask deploy if [ $# -eq 0 ]; then
gunicorn --access-logfile - --bind :5000 --error-logfile - --workers "${GUNICORN_WORKERS}" --worker-class eventlet nopaque:app flask deploy
gunicorn --access-logfile - --bind :5000 --error-logfile - --workers "${GUNICORN_WORKERS}" --worker-class eventlet nopaque:app
elif [ $1 == "flask" ]; then
flask ${@:2}
else
echo "$0 [flask [options]]"
fi