diff --git a/daemon/boot.sh b/daemon/boot.sh index ce652c64..d3e27ee8 100755 --- a/daemon/boot.sh +++ b/daemon/boot.sh @@ -5,5 +5,4 @@ echo "Waiting for nopaque..." wait-for-it nopaque:5000 --strict --timeout=0 source venv/bin/activate - python nopaqued.py diff --git a/web/app/corpora/events.py b/web/app/corpora/events.py index ced63a3a..82a66d17 100644 --- a/web/app/corpora/events.py +++ b/web/app/corpora/events.py @@ -1,3 +1,4 @@ +from datetime import datetime from flask import current_app, request from flask_login import current_user from socket import gaierror @@ -7,7 +8,6 @@ from ..events import connected_sessions from ..models import Corpus, User import cqi import math -from datetime import datetime ''' diff --git a/web/boot.sh b/web/boot.sh index 871e149c..4a79f81a 100755 --- a/web/boot.sh +++ b/web/boot.sh @@ -5,8 +5,7 @@ echo "Waiting for mq..." wait-for-it "${NOPAQUE_MQ_HOST}:${NOPAQUE_MQ_PORT}" --strict --timeout=0 source venv/bin/activate - -if [ "$#" -eq 0 ]; then +if [[ "$#" -eq 0 ]]; then flask deploy python nopaque.py elif [[ "$1" == "flask" ]]; then @@ -16,6 +15,6 @@ else echo "" echo "nopaque startup script" echo "" - echo "Management Commands:" + echo "Commands:" echo " flask" fi