From 9958e03762c20f1bd00f81c537d0a52a8818cb9b Mon Sep 17 00:00:00 2001 From: Automated Action Date: Mon, 12 May 2025 16:50:55 +0000 Subject: [PATCH] Fix database path to use absolute path for reliable permissions --- app/db/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/db/database.py b/app/db/database.py index 9a259ed..da4eb41 100644 --- a/app/db/database.py +++ b/app/db/database.py @@ -12,7 +12,8 @@ CURRENT_FILE_DIR = Path(__file__).resolve().parent PROJECT_DIR = CURRENT_FILE_DIR.parent.parent # Create database directory in the project directory -DB_DIR = PROJECT_DIR / "app" / "storage" / "db" +# Use relative paths from the project root to avoid permission issues +DB_DIR = Path("/projects/simpletodoapplication-222fyi/app/storage/db") # Ensure directory exists before accessing it os.makedirs(DB_DIR, exist_ok=True)