diff --git a/api/.vscode/launch.json b/api/.vscode/launch.json index 8a57e6e..a8d8888 100644 --- a/api/.vscode/launch.json +++ b/api/.vscode/launch.json @@ -9,7 +9,10 @@ "type": "python", "request": "launch", "module": "ovdashboard_api.main", - "justMyCode": true + "justMyCode": true, + "env": { + "PRODUCTION_MODE": "false" + } } ] } \ No newline at end of file diff --git a/api/ovdashboard_api/main.py b/api/ovdashboard_api/main.py index c133181..5dcbb92 100644 --- a/api/ovdashboard_api/main.py +++ b/api/ovdashboard_api/main.py @@ -9,8 +9,8 @@ Creates the main `FastAPI` app. import uvicorn from fastapi import FastAPI -from .settings import SETTINGS from .routers import main_router +from .settings import SETTINGS app = FastAPI( title="OVDashboard API", @@ -36,7 +36,7 @@ def main() -> None: app="ovdashboard_api.main:app", host="0.0.0.0", port=8000, - reload=True, + reload=not SETTINGS.production_mode, )