Skip to content

Commit 7a1e439

Browse files
committed
Add gunicorn, fix binding to 0.0.0.0:$PORT for Railway health checks
1 parent 8b81e17 commit 7a1e439

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

nixpacks.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# This overrides the start command to use gunicorn (which auto-binds to $PORT)
44

55
[start]
6-
cmd = "gunicorn run:app --workers 2 --threads 2"
6+
# Bind to Railway-provided $PORT and all interfaces so health checks can reach the app
7+
cmd = "gunicorn run:app --workers 2 --threads 2 --bind 0.0.0.0:${PORT}"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dependencies = [
6060
"python-editor>=1.0.4",
6161
# Production server
6262
"uwsgi>=2.0.30; sys_platform != 'win32'",
63+
"gunicorn>=23.0.0",
6364
"sluggi>=0.1.1",
6465
# Payments and billing
6566
"stripe>=12.0.0",

uv.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)