mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
13 lines
360 B
Bash
Executable File
13 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Waiting for db..."
|
|
wait-for-it db:5432 --strict --timeout=0
|
|
echo "Waiting for redis..."
|
|
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
|