Skip to content

Claude/ios book quotes app mhk45#6

Merged
jordanroper2 merged 5 commits intomainfrom
claude/ios-book-quotes-app-Mhk45
Mar 2, 2026
Merged

Claude/ios book quotes app mhk45#6
jordanroper2 merged 5 commits intomainfrom
claude/ios-book-quotes-app-Mhk45

Conversation

@jordanroper2
Copy link
Copy Markdown
Owner

No description provided.

claude added 5 commits March 2, 2026 00:17
The Dockerfile CMD was hardcoding port 3000, while Railway assigns a
dynamic PORT environment variable at runtime. Since Docker exec form
does not expand environment variables, the app was always binding to
port 3000 regardless of what port Railway expected.

Changes:
- Dockerfile: Switch CMD to shell form with sh -c so ${PORT:-3000} is
  properly expanded at container startup
- railway.json: Remove redundant startCommand (Dockerfile now handles
  it correctly), add healthcheckTimeout of 300s for reliability

https://claude.ai/code/session_01AQ4QvqCQqmgTLJqG5FJAcB
Railway's healthcheck connects from outside the container. serve v14
defaults to 127.0.0.1 when given just -l $PORT, making it unreachable.
Explicitly binding to tcp://0.0.0.0:$PORT fixes the healthcheck failure.

https://claude.ai/code/session_01AQ4QvqCQqmgTLJqG5FJAcB
npx can silently fail or stall resolving a local package in restricted
Docker/Railway environments. Installing serve globally and calling it
directly is simpler and more reliable.

https://claude.ai/code/session_01AQ4QvqCQqmgTLJqG5FJAcB
@jordanroper2 jordanroper2 merged commit 05c42d7 into main Mar 2, 2026
3 checks passed
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.

2 participants