Skip to content

Commit c60452d

Browse files
Fix Render deployment - remove Docker, add health check - Sat Feb 28 11:52:24 IST 2026
1 parent f3476ea commit c60452d

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

backend/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

backend/app/api/routes/tutor.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818
from app.services import true_false_service
1919

2020
logger = logging.getLogger(__name__)
21-
router = APIRouter(tags=["tutor"])
2221

22+
router = APIRouter(prefix="/api/v1/tutor", tags=["tutor"])
23+
24+
25+
# ── Health Check ───────────────────────────────────────────────────────────────
2326

2427
@router.get("/health")
25-
async def health():
26-
return {"status": "ok"}
28+
async def health_check():
29+
"""Health check endpoint for Render monitoring."""
30+
return {"status": "healthy", "service": "aitutor-backend"}
2731

2832

2933
@router.options("/learn")

render.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ services:
33
name: aitutor-backend
44
runtime: python
55
plan: free
6-
buildCommand: "cd src/backend && pip install -r requirements.txt"
7-
startCommand: "cd src/backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT"
6+
buildCommand: "cd backend && pip install -r requirements.txt"
7+
startCommand: "cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT"
88
envVars:
99
- key: OPENROUTER_API_KEY
1010
sync: false

0 commit comments

Comments
 (0)