fix first run
This commit is contained in:
1 parent
dfeb6d93c9
commit
9e28915419
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ from starlette.middleware import Middleware
|
||||
from starlette_context import context, plugins
|
||||
from starlette_context.middleware import RawContextMiddleware
|
||||
|
||||
if os.path.isfile("first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", "").lower() == "true"):
|
||||
if os.path.isfile("/tmp/first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", "").lower() == "true"):
|
||||
print("First run ... load data")
|
||||
with SessionLocal() as db:
|
||||
asyncio.run(admin.create_upload_file(include_non_singable=True, db=db))
|
||||
|
||||
Reference in new issue
Block a user