Render was auto-detecting root requirements.txt instead of api/requirements.txt, causing FastAPI to not be installed. Setting rootDir: api fixes this.
17 lines
397 B
YAML
17 lines
397 B
YAML
services:
|
|
# Config API Service
|
|
- type: web
|
|
name: skill-seekers-api
|
|
runtime: python
|
|
plan: free
|
|
rootDir: api
|
|
buildCommand: pip install -r requirements.txt
|
|
startCommand: 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
|