Skip to content

Fix 502 on Railway: expose 8080#138

Merged
vignesh07 merged 1 commit into
mainfrom
fix/railway-expose-8080
Feb 19, 2026
Merged

Fix 502 on Railway: expose 8080#138
vignesh07 merged 1 commit into
mainfrom
fix/railway-expose-8080

Conversation

@vignesh07

Copy link
Copy Markdown
Owner

Fixes #132.

Railway commonly routes to the port it detects from the image (EXPOSE) / service networking settings.
Our wrapper listens on Railway’s injected PORT (often 8080), but the Dockerfile was exposing 3000, which can cause Railway to route to the wrong port → 502 even though logs show the wrapper listening.

Changes:

  • Dockerfile: EXPOSE 8080
  • README: local smoke test defaults to 8080

Tests:

  • npm test

@vignesh07 vignesh07 merged commit 27fca63 into main Feb 19, 2026
1 check passed
@vignesh07 vignesh07 deleted the fix/railway-expose-8080 branch February 19, 2026 19:17
k7cfo pushed a commit to k7cfo/railclaw that referenced this pull request Feb 21, 2026
0xRichardH pushed a commit to 0xRichardH/openclaw-railway-template that referenced this pull request Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

502 Bad Gateway with bot started correctly

1 participant