Spaces:
Sleeping

MicroFunnel commited on
Commit
83bdc32
·
1 Parent(s): b207a93

Fix: Use 'python -m pip' and 'python -m uvicorn' for proper module execution

Browse files
Files changed (3) hide show
  1. Procfile +1 -1
  2. nixpacks.toml +3 -3
  3. railway.json +1 -1
Procfile CHANGED
@@ -1 +1 @@
1
- web: cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
 
1
+ web: cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT
nixpacks.toml CHANGED
@@ -4,9 +4,9 @@ providers = ["python"]
4
 
5
  [phases.install]
6
  cmds = [
7
- "pip install --upgrade pip",
8
- "pip install -r requirements.txt"
9
  ]
10
 
11
  [start]
12
- cmd = "cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT"
 
4
 
5
  [phases.install]
6
  cmds = [
7
+ "python -m pip install --upgrade pip",
8
+ "python -m pip install -r requirements.txt"
9
  ]
10
 
11
  [start]
12
+ cmd = "cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT"
railway.json CHANGED
@@ -5,7 +5,7 @@
5
  "nixpacksConfigPath": "nixpacks.toml"
6
  },
7
  "deploy": {
8
- "startCommand": "cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT",
9
  "restartPolicyType": "ON_FAILURE",
10
  "restartPolicyMaxRetries": 10
11
  }
 
5
  "nixpacksConfigPath": "nixpacks.toml"
6
  },
7
  "deploy": {
8
+ "startCommand": "cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT",
9
  "restartPolicyType": "ON_FAILURE",
10
  "restartPolicyMaxRetries": 10
11
  }