Skip to content

Commit 8b81e17

Browse files
committed
Use nixpacks+gunicorn for Railway, keep Dockerfile for Fly.io/compose
1 parent 0ec1fcb commit 8b81e17

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

nixpacks.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Railway-specific build configuration
2+
# Railway uses Nixpacks by default, which auto-detects Python
3+
# This overrides the start command to use gunicorn (which auto-binds to $PORT)
4+
5+
[start]
6+
cmd = "gunicorn run:app --workers 2 --threads 2"

railway.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build]
2-
builder = "dockerfile"
3-
dockerfilePath = "Dockerfile"
2+
builder = "nixpacks"
43

54
[deploy]
65
healthcheckPath = "/"

0 commit comments

Comments
 (0)