Fix database path to use absolute path for reliable permissions

This commit is contained in:
Automated Action 2025-05-12 16:50:55 +00:00
parent 88aa1a09dd
commit 9958e03762

View File

@ -12,7 +12,8 @@ CURRENT_FILE_DIR = Path(__file__).resolve().parent
PROJECT_DIR = CURRENT_FILE_DIR.parent.parent PROJECT_DIR = CURRENT_FILE_DIR.parent.parent
# Create database directory in the project directory # 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 # Ensure directory exists before accessing it
os.makedirs(DB_DIR, exist_ok=True) os.makedirs(DB_DIR, exist_ok=True)