- Remove rootDir (Render may auto-detect root requirements.txt first) - Explicitly use 'pip install -r api/requirements.txt' in buildCommand - Explicitly use 'cd api &&' in startCommand - This ensures FastAPI dependencies are installed from api/requirements.txt
16 lines
394 B
YAML
16 lines
394 B
YAML
services:
|
|
# Config API Service
|
|
- type: web
|
|
name: skill-seekers-api
|
|
runtime: python
|
|
plan: free
|
|
buildCommand: pip install -r api/requirements.txt
|
|
startCommand: cd api && uvicorn main:app --host 0.0.0.0 --port $PORT
|
|
envVars:
|
|
- key: PYTHON_VERSION
|
|
value: 3.10
|
|
- key: PORT
|
|
generateValue: true
|
|
healthCheckPath: /health
|
|
autoDeploy: true
|