mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
15 lines
295 B
Bash
Executable File
15 lines
295 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
|
|
|
|
if [ $# -eq 0 ]; then
|
|
venv/bin/python nopaque.py
|
|
elif [ $1 == "flask" ]; then
|
|
venv/bin/python -m $@
|
|
else
|
|
echo "Unknown command"
|
|
fi
|