let's try this fix for 'RuntimeError: working outside of application context'

This commit is contained in:
Filip Valder
2016-11-26 00:44:22 +01:00
parent a77346825c
commit b00a34f1f2

View File

@@ -101,8 +101,9 @@ def testpdc():
def upgradedb():
""" Upgrades the database schema to the latest revision
"""
flask_migrate.upgrade()
insert_fake_baseruntime()
with app.app_context():
flask_migrate.upgrade()
insert_fake_baseruntime()
@manager.command