From a44407255bd61001403fe4fd3e03a3fb2ea1f183 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 22 Aug 2019 14:20:54 +0200 Subject: [PATCH] Load .env file manually because socketio.run does not load it for you. --- opaque.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opaque.py b/opaque.py index eb8ad4d2..05089863 100644 --- a/opaque.py +++ b/opaque.py @@ -1,8 +1,13 @@ from app import create_app, db, socketio from app.models import Corpus, User, Role, Permission, Job +from dotenv import load_dotenv from flask_migrate import Migrate import os + +load_dotenv() + + app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db)