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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user