From 6cd77cca504c43e528dec975909ed458999734a5 Mon Sep 17 00:00:00 2001 From: "matthias@matsewe.de" Date: Tue, 2 Jul 2024 14:20:09 +0200 Subject: [PATCH] fix first run --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index a2ceb21..aa14637 100644 --- a/app/main.py +++ b/app/main.py @@ -23,7 +23,7 @@ if os.path.isfile("/tmp/first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", " print("First run ... load data") with SessionLocal() as db: asyncio.run(admin.create_upload_file(include_non_singable=True, db=db)) - os.remove("first_run") + os.remove("/tmp/first_run") # Base.metadata.create_all(engine)