fix(render): Use explicit paths for api/requirements.txt
- 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
This commit is contained in:
@@ -4,9 +4,8 @@ services:
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user