7 hours ago
Hello Railway team,
We run an existing project created before the "New services cannot opt into Config as Code" change. Our services already have their configuration saved at service level (migrated on 20 November 2026), but some of them still contain a railway.toml in the repository.
We understood that the deprecation of legacy railway.toml auto-detection for existing services, originally announced for 1 December 2026, has been postponed to 1 January 2027. Could a Railway team member please confirm in writing:
- The exact effective date (and time zone) on which existing services stop reading railway.toml from the repository.
- Whether, until that date, a deployment of an existing service still applies railway.toml values (for example preDeployCommand and startCommand) on top of, or instead of, the saved service settings.
- After that date, whether only the saved service settings apply, and whether preDeployCommand can be set as a saved service setting.
We plan our deployments around this date, so a written answer from a Railway employee would help us a lot. We previously asked in thread 12464374 but only received an automated reply.
Thank you.
3 Replies
7 hours ago
Existing railway.toml / railway.json files keep working for services that already use them until 1 January 2027, which is the cutoff. We can't give you a more exact time or time zone for that date, so finish mirroring your settings before 1 January rather than planning a deploy for that day. Until the cutoff, the file is read on each deploy and overrides the matching saved service settings, so values like startCommand and preDeployCommand in the file win over the service settings.
After the cutoff, deploys don't fail. We just stop reading the file, so only the saved service settings apply. preDeployCommand can be a saved service setting: set it in the dashboard, or through the public API serviceInstanceUpdate mutation along with startCommand and the other fields the file controls. Anything set only in the file and never copied into the service settings stops applying at the cutoff. To be safe, check that every value in your remaining railway.toml files is in the saved settings, then remove the files or clear each service's Railway Config File setting. The deprecation details are on Config as Code.
Status changed to Awaiting User Response Railway • about 7 hours ago
Railway
Existing `railway.toml` / `railway.json` files keep working for services that already use them until 1 January 2027, which is the cutoff. We can't give you a more exact time or time zone for that date, so finish mirroring your settings before 1 January rather than planning a deploy for that day. Until the cutoff, the file is read on each deploy and overrides the matching saved service settings, so values like `startCommand` and `preDeployCommand` in the file win over the service settings. After the cutoff, deploys don't fail. We just stop reading the file, so only the saved service settings apply. `preDeployCommand` can be a saved service setting: set it in the dashboard, or through the public API `serviceInstanceUpdate` mutation along with `startCommand` and the other fields the file controls. Anything set only in the file and never copied into the service settings stops applying at the cutoff. To be safe, check that every value in your remaining `railway.toml` files is in the saved settings, then remove the files or clear each service's Railway Config File setting. The deprecation details are on [Config as Code](https://docs.railway.com/config-as-code).
3 hours ago
Thank you for the automated response. However, we specifically need written confirmation from a Railway staff member before proceeding with our production deployment.
Could a Railway team member please review and confirm the answers to our three original questions?
Thank you for your assistance.
Status changed to Awaiting Railway Response Railway • about 3 hours ago
3 hours ago
Here are the answers to your three questions in writing.
Existing railway.toml files keep working for services that already use them until 1 January 2027, which is the cutoff. We can't give a more exact time or time zone than that date, so we recommend finishing the move to saved settings before 1 January rather than planning a production deploy for that day.
Until the cutoff, the file is read on every deploy and overrides the matching saved service settings, so startCommand and preDeployCommand in the file are used instead of the saved values.
After the cutoff, deploys keep working and only the saved service settings apply. preDeployCommand can be a saved service setting, set in the dashboard or through the public API serviceInstanceUpdate mutation along with startCommand. Anything set only in the file and never copied into the service settings stops applying at the cutoff. The deprecation details are on Config as Code.
Status changed to Awaiting User Response Railway • about 3 hours ago