Skip to content
Snippets Groups Projects
Commit 606c8cf7 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add flask command switch to docker-entrypoint again

parent d520184d
No related branches found
No related tags found
No related merge requests found
......@@ -8,5 +8,11 @@ wait-for-it redis:6379 --strict --timeout=0
GUNICORN_WORKERS="${GUNICORN_WORKERS:-1}"
source venv/bin/activate
flask deploy
gunicorn --access-logfile - --bind :5000 --error-logfile - --workers "${GUNICORN_WORKERS}" --worker-class eventlet nopaque:app
if [ $# -eq 0 ]; then
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment