fix: use python -m uvicorn for Render PATH compatibility

This commit is contained in:
2026-07-13 13:22:42 +05:30
parent 6d0f3237af
commit 63540297aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
web: uvicorn main:app --host 0.0.0.0 --port $PORT web: python -m uvicorn main:app --host 0.0.0.0 --port $PORT
+1 -1
View File
@@ -3,7 +3,7 @@ services:
name: contec-monitor-api name: contec-monitor-api
runtime: python runtime: python
buildCommand: pip install -r requirements.txt buildCommand: pip install -r requirements.txt
startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT startCommand: python -m uvicorn main:app --host 0.0.0.0 --port $PORT
envVars: envVars:
- key: PORT - key: PORT
value: 10000 value: 10000