fix(render): Set rootDir to api directory for correct dependency installation

Render was auto-detecting root requirements.txt instead of api/requirements.txt,
causing FastAPI to not be installed. Setting rootDir: api fixes this.
This commit is contained in:
yusyus
2025-11-30 17:07:32 +03:00
parent 13bcb6beda
commit b3791c94a2

View File

@@ -4,8 +4,9 @@ services:
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
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