Spaces:
Running
Running
Commit ·
c3360e6
1
Parent(s): fb1d21a
fix: add Procfile and runtime.txt for Railway
Browse files- render.yaml +9 -0
- run.py +3 -3
render.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
- type: web
|
| 3 |
+
name: jarvis
|
| 4 |
+
runtime: python
|
| 5 |
+
buildCommand: pip install -r requirements.txt
|
| 6 |
+
startCommand: python run.py
|
| 7 |
+
envVars:
|
| 8 |
+
- key: PORT
|
| 9 |
+
value: 8000
|
run.py
CHANGED
|
@@ -4,6 +4,6 @@ if __name__ == "__main__":
|
|
| 4 |
uvicorn.run(
|
| 5 |
"app.main:app",
|
| 6 |
host="0.0.0.0",
|
| 7 |
-
port=
|
| 8 |
-
reload=
|
| 9 |
-
)
|
|
|
|
| 4 |
uvicorn.run(
|
| 5 |
"app.main:app",
|
| 6 |
host="0.0.0.0",
|
| 7 |
+
port=port,
|
| 8 |
+
reload=False,
|
| 9 |
+
)
|