bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
14 lines
401 B
Diff
14 lines
401 B
Diff
diff --git a/cps/__init__.py b/cps/__init__.py
|
|
index 627cca0b..233bb2dd 100644
|
|
--- a/cps/__init__.py
|
|
+++ b/cps/__init__.py
|
|
@@ -87,6 +87,9 @@ db.CalibreDB.setup_db(config, cli.settingspath)
|
|
|
|
calibre_db = db.CalibreDB()
|
|
|
|
+if os.environ.get('__RUN_MIGRATIONS_AND_EXIT'):
|
|
+ sys.exit(0)
|
|
+
|
|
def create_app():
|
|
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
|
# For python2 convert path to unicode
|