Skip to content

Migrate Railway configuration to infrastructure as code - #18

Merged
austin-smith merged 1 commit into
mainfrom
migrate-railway-infrastructure-as-code
Aug 24, 2026
Merged

austin-smith merged 1 commit into
mainfrom
migrate-railway-infrastructure-as-code

Conversation

@austin-smith

Copy link
Copy Markdown
Owner

What Changed

  • Replace the three app-local Railway Config as Code files with one project-level .railway/railway.ts graph for the application services, databases, volumes, domains, networking, and variables.
  • Add deterministic validation for both Railway environments, including preserved secrets, database references, deployment contracts, and same-major database image auto-updates.
  • Add a standalone pnpm railway:check command and run it as an independent CI step.
  • Update the Railway runbook with the reviewed pre-merge cutover, verification, and rollback procedure.

Why

Railway is moving from service-scoped Config as Code to project-level Infrastructure as Code. A single typed project graph makes the complete deployment contract reviewable and prevents the legacy and replacement configuration systems from coexisting after merge.

This pull request does not modify Railway. Follow docs/railway.md and do not merge until both Railway environments have completed the cutover and produced clean second plans.

Validation

  • pnpm railway:check
  • pnpm verify --concurrency=1 — 26/26 tasks successful
  • pnpm --filter @webhooks-lol/web exec vitest run tests/next-config.test.ts tests/auth/server.test.ts — 10/10 tests passed
  • Prettier check for all changed source, configuration, workflow, and documentation files
  • git diff --check
  • Autoreview — no accepted or actionable findings

define and validate the project-level railway graph for both deployment environments. remove the app-local config as code files so infrastructure as code is the repository's single source of truth.
@austin-smith
austin-smith merged commit f3e4661 into main Aug 24, 2026
3 checks passed
@austin-smith
austin-smith deleted the migrate-railway-infrastructure-as-code branch August 24, 2026 00:55
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