feat: Implement initial FastAPI application structure with configuration, core services, and an admin UI.

This commit is contained in:
2026-01-29 13:15:26 +08:00
parent 9cb938be9a
commit a5300eb379
4 changed files with 22 additions and 5 deletions

View File

@@ -6,4 +6,6 @@ load_dotenv()
if __name__ == "__main__":
port = int(os.getenv("PORT", 8000))
uvicorn.run("app.main:app", host="0.0.0.0", port=port, reload=True)
is_development = os.getenv("ENVIRONMENT", "development") == "development"
uvicorn.run("app.main:app", host="0.0.0.0", port=port, reload=is_development)