Add redis message qeue

This commit is contained in:
Stephan Porada 2019-08-26 14:21:06 +02:00
parent 5771fb8ae7
commit 9f011b27c3
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def create_app(config_name):
mail.init_app(app)
scheduler.init_app(app)
scheduler.start()
socketio.init_app(app)
socketio.init_app(app, message_qeue='redis://')
from .auth import auth as auth_blueprint
app.register_blueprint(auth_blueprint, url_prefix='/auth')

View File

@ -1,3 +1,6 @@
import eventlet
eventlet.monkey_patch()
from dotenv import load_dotenv
load_dotenv()