diff --git a/README.md b/README.md index 49e2f64..394fb8e 100644 --- a/README.md +++ b/README.md @@ -184,4 +184,4 @@ Once the application is running, you can access the API documentation at: ## Database -The application uses SQLite as the database. The database file is created at `/projects/ecommerceapplication-np8xvf/storage/db/db.sqlite`. \ No newline at end of file +The application uses SQLite as the database. The database file is created at `/app/storage/db/db.sqlite`. \ No newline at end of file diff --git a/alembic.ini b/alembic.ini index 488077d..5a272eb 100644 --- a/alembic.ini +++ b/alembic.ini @@ -36,7 +36,7 @@ script_location = migrations # output_encoding = utf-8 # SQLite URL -sqlalchemy.url = sqlite:////projects/ecommerceapplication-np8xvf/storage/db/db.sqlite +sqlalchemy.url = sqlite:////app/storage/db/db.sqlite [post_write_hooks] # post_write_hooks defines scripts or Python functions that are run diff --git a/app/core/config.py b/app/core/config.py index 3fcec45..9906270 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -19,7 +19,7 @@ class Settings(BaseSettings): ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 # Database settings - DB_DIR: Path = Path("/projects/ecommerceapplication-np8xvf") / "storage" / "db" + DB_DIR: Path = Path("/app") / "storage" / "db" SQLALCHEMY_DATABASE_URL: str = f"sqlite:///{DB_DIR}/db.sqlite" # CORS settings