mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-09 08:13:21 +08:00
let's try this fix for 'RuntimeError: working outside of application context'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user