We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd52059 + 2ab0333 commit 58ea671Copy full SHA for 58ea671
2 files changed
agentsite/api/app.py
@@ -76,6 +76,11 @@ def create_app() -> FastAPI:
76
allow_headers=["*"],
77
)
78
79
+ # Lightweight health check (no external calls)
80
+ @app.get("/api/health")
81
+ async def health():
82
+ return {"status": "ok"}
83
+
84
# API routes
85
app.include_router(projects.router)
86
app.include_router(generate.router)
railway.json
@@ -5,7 +5,7 @@
5
},
6
"deploy": {
7
"startCommand": "agentsite serve --host 0.0.0.0 --port ${PORT:-6391}",
8
- "healthcheckPath": "/api/models",
+ "healthcheckPath": "/api/health",
9
"restartPolicyType": "ON_FAILURE",
10
"restartPolicyMaxRetries": 3
11
}
0 commit comments