mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Fix bug on corpus analysis startup
This commit is contained in:
parent
52c25fd563
commit
34c4f38b52
4
boot.sh
4
boot.sh
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
if [[ "${NOPAQUE_DAEMON_ENABLED:-True}" == "True" ]]; then
|
if [[ "${NOPAQUE_DAEMON_ENABLED:-True}" == "True" ]]; then
|
||||||
echo "INFO Starting nopaque daemon process..."
|
echo "INFO Starting nopaque daemon process..."
|
||||||
./nopaque-daemon.sh &
|
./nopaque-daemon.sh &
|
||||||
@ -16,7 +14,7 @@ if [[ "${#}" -eq 0 ]]; then
|
|||||||
echo "Deploy command failed, retrying in 5 secs..."
|
echo "Deploy command failed, retrying in 5 secs..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
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
|
elif [[ "${1}" == "flask" ]]; then
|
||||||
exec ${@:1}
|
exec ${@:1}
|
||||||
else
|
else
|
||||||
|
@ -2,6 +2,8 @@ version: "3.5"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nopaque:
|
nopaque:
|
||||||
|
environment:
|
||||||
|
- ENABLE_GUNICORN_RELOAD=True
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
volumes:
|
volumes:
|
||||||
@ -11,5 +13,6 @@ services:
|
|||||||
- "./config.py:/home/nopaque/config.py"
|
- "./config.py:/home/nopaque/config.py"
|
||||||
- "./migrations:/home/nopaque/migrations"
|
- "./migrations:/home/nopaque/migrations"
|
||||||
- "./nopaque.py:/home/nopaque/nopaque.py"
|
- "./nopaque.py:/home/nopaque/nopaque.py"
|
||||||
|
- "./nopaque-daemon.sh:/home/nopaque/nopaque-daemon.sh"
|
||||||
- "./requirements.txt:/home/nopaque/requirements.txt"
|
- "./requirements.txt:/home/nopaque/requirements.txt"
|
||||||
- "./tests:/home/nopaque/tests"
|
- "./tests:/home/nopaque/tests"
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# First things first: apply monkey patch, so that no code gets executed without
|
# First things first: apply monkey patch, so that no code gets executed without
|
||||||
# patched libraries!
|
# patched libraries!
|
||||||
import eventlet
|
import eventlet
|
||||||
|
|
||||||
|
|
||||||
eventlet.monkey_patch()
|
eventlet.monkey_patch()
|
||||||
|
|
||||||
|
|
||||||
@ -26,9 +24,3 @@ def make_shell_context():
|
|||||||
'QueryResult': QueryResult,
|
'QueryResult': QueryResult,
|
||||||
'Role': Role,
|
'Role': Role,
|
||||||
'User': User}
|
'User': User}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
host = '0.0.0.0'
|
|
||||||
port = 5000
|
|
||||||
socketio.run(app, host=host, port=port)
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
cqi
|
cqi
|
||||||
docker
|
docker
|
||||||
eventlet
|
eventlet==0.30.2
|
||||||
Flask~=1.1.0
|
Flask~=1.1
|
||||||
Flask-Assets
|
Flask-Assets
|
||||||
Flask-HTTPAuth
|
Flask-HTTPAuth
|
||||||
Flask-Login
|
Flask-Login
|
||||||
@ -9,9 +9,10 @@ Flask-Mail
|
|||||||
Flask-Migrate
|
Flask-Migrate
|
||||||
Flask-Paranoid
|
Flask-Paranoid
|
||||||
Flask-RESTX
|
Flask-RESTX
|
||||||
Flask-SocketIO~=5.0.0
|
Flask-SocketIO~=5.1
|
||||||
Flask-SQLAlchemy
|
Flask-SQLAlchemy
|
||||||
Flask-WTF
|
Flask-WTF
|
||||||
|
gunicorn
|
||||||
jsonpatch
|
jsonpatch
|
||||||
jsonschema
|
jsonschema
|
||||||
psycopg2
|
psycopg2
|
||||||
|
Loading…
Reference in New Issue
Block a user