Fix bug on corpus analysis startup

This commit is contained in:
Patrick Jentsch
2021-09-15 14:14:23 +02:00
parent 52c25fd563
commit 34c4f38b52
4 changed files with 8 additions and 14 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash
source venv/bin/activate
if [[ "${NOPAQUE_DAEMON_ENABLED:-True}" == "True" ]]; then
echo "INFO Starting nopaque daemon process..."
./nopaque-daemon.sh &
@ -16,7 +14,7 @@ if [[ "${#}" -eq 0 ]]; then
echo "Deploy command failed, retrying in 5 secs..."
sleep 5
done
python nopaque.py
gunicorn $([ "${ENABLE_GUNICORN_RELOAD:-False}" == "True" ] && echo "--reload") --worker-class eventlet -b :5000 -w 1 nopaque:app
elif [[ "${1}" == "flask" ]]; then
exec ${@:1}
else