Skip to content

Commit cf2b7bf

Browse files
Tawheed30claude
andcommitted
Fix Railway backend deploy: Procfile + nixpacks.toml
Procfile: explicit start command as Railway fallback nixpacks.toml: pin python311, install requirements.txt, set start command These ensure Railway builds correctly when root directory is set to /backend Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fb5f26e commit cf2b7bf

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

backend/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: uvicorn app.main:app --host 0.0.0.0 --port $PORT

backend/nixpacks.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[phases.setup]
2+
nixPkgs = ["python311"]
3+
4+
[phases.install]
5+
cmds = ["pip install -r requirements.txt"]
6+
7+
[start]
8+
cmd = "uvicorn app.main:app --host 0.0.0.0 --port $PORT"

0 commit comments

Comments
 (0)