Repository navigation
chore(deploy): drop railway.toml; the Railway service holds its settings - #1179
Conversation
Railway stops reading Config as Code files (railway.toml / railway.json) on 2026-12-01. The production SahajCloud service now carries the same values as service settings (Railpack, `pnpm start`, healthcheck /api/health with a 300 s timeout, restart on failure with 3 retries), and a PR environment copies them when Railway creates it. Railway's replacement, .railway/railway.ts, is not read on deploy: a CLI or CI job applies it, and an apply deletes what the file leaves out. With one service to configure it is not adopted; DEPLOYMENT.md records the settings instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1179 environment in sahajcloud
1 service not affected by this PR
|
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is exactly what its body claims: one file deleted, three docs corrected, no code touched, nothing smuggled in. Dropping Config as Code rather than adopting .railway/railway.ts is the right call — a whole-project apply that deletes whatever the file omits is a worse trade than five dashboard settings, and the body counts that cost instead of asserting it. I checked the deploy claim rather than taking it: the preview at e989913 answers /api/health with 200 and no railway.toml in the tree. The one weakness is where the values landed. Deleting the single file that owned them left two copies in the repo rather than none.
Findings
should-fix— RAILWAY_RUNBOOK.md:116 — the five settings are restated here as well as in DEPLOYMENT.md's table, and line 122 pins a retry count that used to be symbolic.consider— DEPLOYMENT.md:45 — three of the table's five rows repeat the two paragraphs directly above it.consider— DEPLOYMENT.md:60 — four lines describing the removed system, duplicating the PR body.
What was checked
- Read whole on the branch:
DEPLOYMENT.md,RAILWAY_RUNBOOK.md,docs/environment.md, and the deletedrailway.toml. Every value the file set reaches the docs, and its build narration was already in § Build & Start. git grepfor the file names and each setting key, across the branch and all five checkouts: only the two historical mentions in DEPLOYMENT.md. No workflow, script or config reads the file.- Live:
GET /api/healthon the pr-1179 preview → 200, commite9899137, environmentSahajCloud-pr-1179, created after the production change. - Not checked: production's own service settings.
RAILWAY_TOKENhere answersNot Authorizedto the Railway API, so the table's values rest on the author's word. - Ladder: the diff adds no file, helper or dependency.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Step 7 restated all five deploy settings, which DEPLOYMENT.md's table now owns, so one dashboard change had to be mirrored in two files. It instructs and links instead. The paragraph below it named the retry count and the healthcheck timeout the same way; both now name the setting, not its value. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDy9RBqYNb5CQs26Q
The Build & Start list and the health-check line pinned the builder, the start command and the healthcheck path, which the settings table beside them now carries. Each names the setting instead, so the table is the only copy that can go stale against the dashboard. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDy9RBqYNb5CQs26Q
The paragraph described the system this change removes, repeating the PR body where a reader deciding something today will not look. One sentence remains: do not add either file back, and why the .ts form would not work anyway. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDy9RBqYNb5CQs26Q
|
Three critic threads, all adopted.
Tier 2 lean gate passed on the merged tree: lint, format, both typechecks, 3885 unit tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Why
Railway stops reading Config as Code files (
railway.toml/railway.json) on 2026-12-01. The CLI already warns about it on every call.What changed outside the repo (already done)
The production
SahajCloudservice had none ofrailway.toml's deploy settings of its own: no start command, no healthcheck, and 10 restart retries instead of 3. The file supplied them on every deploy. Those values are now set on the service itself, on production:pnpm start/api/health, 300 s timeoutNothing changes while
railway.tomlis still in the deployed commit, because the file overrides the service settings. Once this merges, the service settings take over with the same values.A PR environment copies production's settings when Railway creates it, and keeps that copy. Confirmed on
SahajCloud-pr-1178, created after the change: it carries all five values.SahajCloud-pr-1155, created before it, still has none.What changes here
railway.toml.DEPLOYMENT.md,RAILWAY_RUNBOOK.md,docs/environment.md: the settings are recorded as service settings, with a warning to change them on production.Not adopted:
.railway/railway.tsRailway's replacement for
railway.tomlis not read on deploy. A CLI or CI job applies it with a Railway token, and a whole-project apply deletes any resource the file leaves out, a database volume included. With one service and five settings, that machinery isn't worth adopting. It also cannot express the per-PR-environment settings that motivated #1178.Verification
railway.toml. Its environment was created after the production change, so it runs on service settings alone. The deploy logs should show the healthcheck on/api/health.⚠ Previews of PRs up to #1176 were created before the change and have no copy of these settings. If one of those branches merges
mainafter this lands, its preview deploys with Railpack's default start command and no healthcheck — harmless for a preview.🤖 Generated with Claude Code