Fix database path to use absolute path for reliable permissions
This commit is contained in:
parent
88aa1a09dd
commit
9958e03762
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user