Skip to content

Commit 58ea671

Browse files
authored
Merge pull request #7 from jhd3197/dev
Add lightweight health check endpoint
2 parents fd52059 + 2ab0333 commit 58ea671

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

agentsite/api/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def create_app() -> FastAPI:
7676
allow_headers=["*"],
7777
)
7878

79+
# Lightweight health check (no external calls)
80+
@app.get("/api/health")
81+
async def health():
82+
return {"status": "ok"}
83+
7984
# API routes
8085
app.include_router(projects.router)
8186
app.include_router(generate.router)

railway.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"deploy": {
77
"startCommand": "agentsite serve --host 0.0.0.0 --port ${PORT:-6391}",
8-
"healthcheckPath": "/api/models",
8+
"healthcheckPath": "/api/health",
99
"restartPolicyType": "ON_FAILURE",
1010
"restartPolicyMaxRetries": 3
1111
}

0 commit comments

Comments
 (0)