Skip to content

Railway Deployment #2d0fc8 fix: remove broken startCommand#2

Merged
Rafalexandre-code merged 1 commit into
masterfrom
railway/fix-deploy-2d0fc8
Apr 24, 2026
Merged

Railway Deployment #2d0fc8 fix: remove broken startCommand#2
Rafalexandre-code merged 1 commit into
masterfrom
railway/fix-deploy-2d0fc8

Conversation

@railway-app

@railway-app railway-app Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Problem

The deployment fails at the healthcheck stage with Error: '$PORT' is not a valid port number. The startCommand in railway.toml passes $PORT as a literal string because Railway's exec-form override does not perform shell variable expansion, so gunicorn never receives the actual port number.

Solution

Removed startCommand from railway.toml so the Dockerfile's CMD takes effect — it uses sh -c which correctly expands ${PORT} at runtime. Also removed the builder = "nixpacks" setting, which was ignored anyway since Railway auto-detects the Dockerfile. All healthcheck and restart policy settings are preserved.

Changes

  • Modified railway.toml

Context

  • Deployment: #2d0fc8
  • Failed commit: ee7eccd

Generated by Railway

@Rafalexandre-code Rafalexandre-code merged commit bd5287d into master Apr 24, 2026
2 of 4 checks passed
@Rafalexandre-code Rafalexandre-code deleted the railway/fix-deploy-2d0fc8 branch July 6, 2026 21:43
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.

1 participant