mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-01 18:30:34 +00:00
Rename TaskRunner to Daemon (because it essentially is one) and restructure cli
This commit is contained in:
12
boot.sh
12
boot.sh
@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
source venv/bin/activate
|
||||
if [[ "${NOPAQUE_DAEMON_ENABLED:-True}" == "True" ]]; then
|
||||
echo "INFO Starting nopaque daemon process..."
|
||||
./nopaque-daemon.sh &
|
||||
fi
|
||||
|
||||
if [[ "${#}" -eq 0 ]]; then
|
||||
while true; do
|
||||
echo "INFO Run deployment tasks..."
|
||||
flask deploy
|
||||
if [[ "${?}" == "0" ]]; then
|
||||
break
|
||||
fi
|
||||
echo "Deploy command failed, retrying in 5 secs..."
|
||||
echo "WARNING ...Failed, retrying in 5 secs..."
|
||||
sleep 5
|
||||
done
|
||||
if [[ "${NOPAQUE_DAEMON_ENABLED:-True}" == "True" ]]; then
|
||||
echo "INFO Start nopaque daemon..."
|
||||
flask daemon run &
|
||||
fi
|
||||
gunicorn \
|
||||
--access-logfile - \
|
||||
--error-logfile - \
|
||||
|
Reference in New Issue
Block a user