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
|
name: skill-seekers-api
|
||||||
runtime: python
|
runtime: python
|
||||||
plan: free
|
plan: free
|
||||||
buildCommand: pip install -r api/requirements.txt
|
rootDir: api
|
||||||
startCommand: cd api && uvicorn main:app --host 0.0.0.0 --port $PORT
|
buildCommand: pip install -r requirements.txt
|
||||||
|
startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
|
||||||
envVars:
|
envVars:
|
||||||
- key: PYTHON_VERSION
|
- key: PYTHON_VERSION
|
||||||
value: 3.10
|
value: 3.10
|
||||||
|
|||||||
Reference in New Issue
Block a user