Migrating production infrastructure? Get up to ₹10,000 in migration credits. Apply now
voroaBlog
Web Services

railway.toml Deprecated: Move to Railway IaC Before 2027

· · 3 min read

railway.toml deprecated - Railway moves service config to Infrastructure as Code in .railway/railway.ts

With railway.toml deprecated, every Railway service that still keeps its build and deploy settings in railway.toml or railway.json needs a small migration. This post is for developers and small teams in India running apps on Railway: what is changing, which date to plan around, and how to move without a surprise on your next deploy.

Advertisement

From Config as Code to Infrastructure as Code

Railway had two ways to describe your setup in a file. Config as Code was a railway.toml or railway.json next to one service, setting things like the build command, start command, health check and restart policy. Infrastructure as Code (IaC) is newer: one file at .railway/railway.ts (TypeScript, with Python and Go versions in beta) that declares the whole project - services, databases and how they connect.

Railway’s Config as Code reference now marks the old files as deprecated, points to IaC, and limits support to existing files on legacy services.

Which date is right: 1 December or 1 January

This is where it is easy to get confused. Railway’s IaC guide, quoting an earlier version of the Config as Code reference, says existing files stop being read on 1 December 2026 and that new services cannot opt in.

The Config as Code reference itself, checked on 1 December 2026, says existing files keep working for legacy services until 1 January 2027. Railway has not announced the change separately; this is simply what its current reference says. Treat 1 January 2027 as the last day, but do not wait for it - two Railway pages giving different dates is a good reason to finish early.

Diagram: railway.toml timeline - Config as Code deprecated, support limited to existing files on legacy services until 1 January 2027, then only .railway/railway.ts counts

What breaks if you ignore it

Nothing changes in your code. What changes is where Railway reads your settings from. If your health check path, restart policy or custom start command only lives in railway.toml, then after the cutoff that file is simply ignored. Railway does not say what replaces those settings, so plan for defaults: possibly no health check, a different start command, or a restart policy you never chose. The app may still build - and then fail in a way that looks unrelated to config.

So after moving, set every field you care about explicitly in the IaC file rather than assuming Railway remembers it from the old file.

Migrating to .railway/railway.ts

Railway’s IaC guide gives the sequence for an existing project, run from a linked project and environment:

bash
railway config pull         # imports the selected environment into .railway/railway.ts
railway config plan         # shows what would be added, changed or removed
railway config apply        # applies the reviewed plan

Then:

  1. Open the generated file and check each service’s start command, health check and restart policy against what you had in railway.toml. Railway warns that a complete project file describes desired state, so a resource left out of it can be proposed for removal - read the plan line by line.
  2. Run railway config plan again after deploying. It should report no differences.
  3. Delete railway.toml or railway.json only after that, in the same pull request, so there is never a moment with two sources of truth.

Do it on a staging environment first. For a monorepo, keep one IaC file for the whole environment; if services live in separate repositories, Railway supports named partials, one per repository.

The dollar bill around a migration

The migration itself is the same everywhere. The India-specific part is the bill around it: Railway charges in US dollars on an international card, so a migration week with extra test deploys shows up as dollar usage plus your bank’s foreign-currency markup. Our Railway pricing in India breakdown shows how that adds up in rupees.

If you are reconsidering the platform anyway

A forced config rewrite is a natural moment to compare options. On Voroa the equivalent of an IaC file is a voroa.yaml Blueprint, which lists your web services, workers, cron jobs and databases and previews the cost before creating anything. Services deploy from GitHub with the same build and start commands you already use, and run as web services in Mumbai, billed in rupees. The Railway alternative guide compares the two in more detail.

Whichever way you go, finish the move before the holidays. Deadlines that land on 1 January tend to find out who was on leave.

Advertisement