coder-vansh commited on
Commit
c3360e6
·
1 Parent(s): fb1d21a

fix: add Procfile and runtime.txt for Railway

Browse files
Files changed (2) hide show
  1. render.yaml +9 -0
  2. 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=8000,
8
- reload=True, # auto-reload on code changes; remove in production
9
- )
 
4
  uvicorn.run(
5
  "app.main:app",
6
  host="0.0.0.0",
7
+ port=port,
8
+ reload=False,
9
+ )