Skip to content

chore(deploy): drop railway.toml; the Railway service holds its settings - #1179

Merged
Ardnived merged 5 commits into
mainfrom
claude/chore-drop-railway-toml
Nov 17, 2026
Merged

Ardnived merged 5 commits into
mainfrom
claude/chore-drop-railway-toml

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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 SahajCloud service had none of railway.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:

Setting Value
Builder Railpack
Start command pnpm start
Healthcheck /api/health, 300 s timeout
Restart policy On failure, 3 retries

Nothing changes while railway.toml is 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

  • Deletes 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.ts

Railway's replacement for railway.toml is 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

  • This PR's own preview builds and deploys with no 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.
  • Tier 2 lean gate passed (docs-only change otherwise).

⚠ Previews of PRs up to #1176 were created before the change and have no copy of these settings. If one of those branches merges main after this lands, its preview deploys with Railpack's default start command and no healthcheck — harmless for a preview.

🤖 Generated with Claude Code

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]>
@railway-app

railway-app Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1179 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 16, 2026 at 11:41 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-bot

sydevs-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running
CI re-run 1 on e989913 — infrastructure, not the change

recent dispatches
  • 23:33Z address-review · attempt 1 · session · done
  • 23:33Z address-review · attempt 1 · session
  • 23:26Z review-pr · attempt 1 · session · done
  • 23:26Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 16, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 16, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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 deleted railway.toml. Every value the file set reaches the docs, and its build narration was already in § Build & Start.
  • git grep for 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/health on the pr-1179 preview → 200, commit e9899137, environment SahajCloud-pr-1179, created after the production change.
  • Not checked: production's own service settings. RAILWAY_TOKEN here answers Not Authorized to 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

Comment thread RAILWAY_RUNBOOK.md Resolved
Comment thread DEPLOYMENT.md Resolved
Comment thread DEPLOYMENT.md Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 16, 2026
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
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1179 November 16, 2026 23:38 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor

Three critic threads, all adopted. origin/main merged in clean first (8184b26), so the gate ran on the merged tree.

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 16, 2026
@sydevs-bot
sydevs-bot enabled auto-merge November 16, 2026 23:52
@Ardnived
Ardnived disabled auto-merge November 17, 2026 00:39
@Ardnived
Ardnived merged commit 5b2aa11 into main Nov 17, 2026
46 of 51 checks passed
@Ardnived
Ardnived deleted the claude/chore-drop-railway-toml branch November 17, 2026 00:39
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 17, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1179 — 8383da89 Deployed Nov 16, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants