Fix database path to use local project directory instead of /app
🤖 Generated with BackendIM... (backend.im)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c139318961
commit
547635aebe
@ -52,7 +52,7 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne
|
||||
# are written from script.py.mako
|
||||
# output_encoding = utf-8
|
||||
|
||||
sqlalchemy.url = sqlite:///%(here)s/app/storage/db/db.sqlite
|
||||
sqlalchemy.url = sqlite:////projects/simpletodoapplication-222fyi/app/storage/db/db.sqlite
|
||||
|
||||
|
||||
[post_write_hooks]
|
||||
|
@ -4,7 +4,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
# Create database directory if it doesn't exist
|
||||
DB_DIR = Path("/app") / "storage" / "db"
|
||||
DB_DIR = Path("/projects/simpletodoapplication-222fyi/app/storage/db")
|
||||
DB_DIR.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
SQLALCHEMY_DATABASE_URL = f"sqlite:///{DB_DIR}/db.sqlite"
|
||||
|
Loading…
x
Reference in New Issue
Block a user