mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Switch back to socketio server while development
This commit is contained in:
parent
98fecacb11
commit
3a05a4d2f4
@ -10,7 +10,7 @@ GUNICORN_WORKERS="${GUNICORN_WORKERS:-1}"
|
|||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
flask deploy
|
flask deploy
|
||||||
gunicorn --access-logfile - --bind :5000 --error-logfile - --workers "${GUNICORN_WORKERS}" --worker-class eventlet nopaque:app
|
python nopaque.py
|
||||||
elif [ $1 == "flask" ]; then
|
elif [ $1 == "flask" ]; then
|
||||||
flask ${@:2}
|
flask ${@:2}
|
||||||
else
|
else
|
||||||
|
@ -23,9 +23,6 @@ MAIL_USE_TLS=
|
|||||||
MAIL_USERNAME=
|
MAIL_USERNAME=
|
||||||
MAIL_PASSWORD=
|
MAIL_PASSWORD=
|
||||||
|
|
||||||
### Gunicorn ###
|
|
||||||
GUNICORN_WORKERS=
|
|
||||||
|
|
||||||
### nopaque ###
|
### nopaque ###
|
||||||
NOPAQUE_ADMIN=
|
NOPAQUE_ADMIN=
|
||||||
NOPAQUE_MAIL_SENDER=
|
NOPAQUE_MAIL_SENDER=
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import eventlet
|
import eventlet
|
||||||
eventlet.monkey_patch() # noqa
|
eventlet.monkey_patch() # noqa
|
||||||
from app import create_app, db
|
from app import create_app, db, socketio
|
||||||
from app.models import Corpus, Job, Role, User
|
from app.models import Corpus, Job, Role, User
|
||||||
from flask_migrate import Migrate, upgrade
|
from flask_migrate import Migrate, upgrade
|
||||||
import os
|
import os
|
||||||
@ -34,3 +34,7 @@ def test():
|
|||||||
import unittest
|
import unittest
|
||||||
tests = unittest.TestLoader().discover('tests')
|
tests = unittest.TestLoader().discover('tests')
|
||||||
unittest.TextTestRunner(verbosity=2).run(tests)
|
unittest.TextTestRunner(verbosity=2).run(tests)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
socketio.run(app, host='0.0.0.0')
|
||||||
|
@ -9,7 +9,6 @@ Flask-SocketIO
|
|||||||
Flask-SQLAlchemy
|
Flask-SQLAlchemy
|
||||||
Flask-Table
|
Flask-Table
|
||||||
Flask-WTF
|
Flask-WTF
|
||||||
gunicorn
|
|
||||||
jsonpatch
|
jsonpatch
|
||||||
psycopg2
|
psycopg2
|
||||||
redis
|
redis
|
||||||
|
Loading…
Reference in New Issue
Block a user