mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add flask command switch to docker-entrypoint again
This commit is contained in:
parent
d520184d1d
commit
606c8cf761
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user