
Note: pricing and features may have changed since publication. Check each provider’s documentation for current details.
Heroku defined how a lot of developers think about deploying apps: push to Git, pick a dyno, add a database from a marketplace. Railway often comes up when Heroku teams consider a move, because it keeps much of that simplicity and adds usage-based billing and a visual project canvas. Whether switching makes sense depends less on which platform is better and more on what your app needs over the next few years.
Everything below comes from each platform's public documentation and announcements, checked on November 4, 2026. Both change often, so follow the links and confirm before you commit.
TL;DR
|
Heroku is still running and supported. What changed is the direction of its roadmap, which is a planning question more than an emergency.
Heroku's February 2026 update says the platform is transitioning to a sustaining engineering model focused on stability, security, reliability, and support. Its March 2026 update adds that it will keep releasing features that fit those goals. The announcement also says customers paying by credit card can keep using Heroku with no changes to pricing, billing, service, or day-to-day usage. For a team with a stable app on Heroku today, nothing breaks. The question it raises is whether the features you expect to need, such as new runtimes, scaling options, or compliance coverage, are likely to arrive on your current platform. If they aren't on your list, staying put is a reasonable choice.
Both deploy from Git or a container image. Heroku organizes apps around dynos and add-ons. Railway organizes them around services on a shared project canvas.
| Heroku | Railway | |
| Pricing model | Fixed monthly price per dyno, prorated to the second | Plan fee that counts toward metered usage |
| Entry pricing | Eco $5/month (shared hours, sleeps), Basic $7/month | Free plan with $1 of resources, Hobby $5/month |
| Production pricing | Standard-1X $25/month, Standard-2X $50/month per dyno | Pro $20/month plus usage |
| Scaling | Manual dyno counts; autoscaling on Performance, Private, and Shield dynos | Automatic vertical scaling up to plan limits, manual replicas |
| Pull request environments | Review apps through Pipelines and GitHub | PR environments |
| Managed data | Heroku Postgres, Key-Value Store, Kafka, plus the add-on marketplace | PostgreSQL, MySQL, Redis, and MongoDB templates |
| Regions | US and Europe on the Common Runtime, more with Private Spaces | 4 regions |
| Configuration | Procfile and app.json | .railway/railway.ts |
| Compliance | ISO 27001 and SOC 2 across runtimes; PCI and HIPAA in Shield Private Spaces | SOC 2 Type II, SOC 3, HIPAA BAA as a paid add-on |
Heroku charges per dyno size whether the dyno is busy or not. Railway charges for what your services use, so quiet services cost less and busy months cost more.
Heroku prices dynos by size. Eco is a $5 monthly subscription for a shared pool of 1,000 hours, and Eco dynos sleep when idle. Basic dynos cost $7 a month and stay on, but an app on Basic can run only one dyno per process type. Production apps usually start on Standard-1X at $25 or Standard-2X at $50 per dyno per month, and Performance dynos start at $250. Databases, caches, and other services are separate add-ons with their own plans.
Railway's plan fee goes toward your usage. Hobby costs $5 a month and includes $5 of resources. Pro costs $20 and includes $20. Past that, you pay $20 per vCPU and $10 per GB of RAM per month, billed by the minute, plus $0.05 per GB of egress and $0.15 per GB of volume storage. Databases run as services on the same meter. For a Heroku team used to a predictable dyno bill, the change is that cost now follows traffic, in both directions.
Heroku's built-in autoscaling is tied to its higher dyno tiers. Railway sizes services vertically for you and leaves horizontal scaling to you.
On Heroku, you scale by changing dyno size or dyno count. Native autoscaling is available for Performance, Private, and Shield dynos. It adjusts web dynos based on a target p95 response time, adding or removing one dyno at a time. If native autoscaling doesn't fit your app, Heroku's docs suggest third-party add-ons from its marketplace.
Railway's scaling docs describe vertical autoscaling as the default: each service can grow up to your plan's CPU and memory limits without you picking a size. To scale out, you set the number of replicas by hand, and you can place replicas in several regions, with public traffic routed to the nearest one.
Both create an environment for every pull request. On both, getting realistic data into it is a script your team writes and maintains.
Heroku review apps need Heroku Pipelines and the GitHub integration, plus an app.json file in your repository. Each review app gets new instances of the add-ons listed in that file, sometimes on an ephemeral plan the add-on provider sets. To fill the database, you write a postdeploy script, which runs once when the review app is created.
Railway's PR environments are created when a pull request opens and deleted when it closes. A duplicated environment copies services, variables, and configuration, and the docs don't cover whether database contents are copied, so test this on a sample project first. Railway can also limit PR environments to the services affected by a change, an option that is still in beta.
Either way, previews run against whatever data your scripts put there. That works for many apps, and it matters more when bugs depend on the shape and size of real data.
Railway publishes a migration guide for Heroku users. Plan time for config, data, and anything your app gets from Heroku add-ons.
Railway's guide to migrating from Heroku walks through moving a simple web service: create a project, push your code, and import your Heroku config vars from the Railway dashboard. Railway reads Procfiles, though the guide notes it supports a single process for now. The guide describes database migration as more involved and offers help with it. In practice, the parts that take longest sit outside the app code: replacing add-ons with equivalent services, moving data, and splitting extra processes such as workers into their own services. Railway's newer Infrastructure as Code defines a whole project in .railway/railway.ts. Its older railway.json and railway.toml files stop being read on December 1, 2026, so new projects should start with the newer format.
Heroku keeps PCI and HIPAA inside its enterprise Shield runtime. Railway offers HIPAA as an add-on and runs on its own hardware.
Heroku apps on the Common Runtime run in the US or Europe, and Private Spaces add regions such as Frankfurt, London, Montreal, and Mumbai. Moving a Common Runtime app to a new region means redeploying it there, as there's no migration option. Heroku's compliance center lists ISO 27001, 27017, and 27018 and SOC 1, 2, and 3 across the Common Runtime and Private Spaces, while PCI DSS and HIPAA cover Shield Private Spaces and Shield services.
Railway runs on hardware it owns in four regions: California, Virginia, Amsterdam, and Singapore. It is SOC 2 Type II and SOC 3 certified, offers a GDPR data processing agreement, and sells a HIPAA BAA as a paid add-on with a monthly spend threshold.
Switch if Railway's billing and scaling fit your app better. Stay if Heroku already covers your needs and its roadmap does too.
Railway is a good fit if:
Staying on Heroku makes sense if:
If you're leaving Heroku anyway, compare at least one option that keeps Git-driven simplicity and adds control over where your app runs.
Teams moving off Heroku often want the same push-to-deploy workflow with fewer limits on infrastructure. Upsun Cloud is built around Git, so it may feel familiar, and it handles a few things differently. If you're mapping an existing setup, our guide to translating Procfiles to service definitions walks through it, and the Heroku-to-multicloud migration guide covers the wider move.
Preview environments that start with data. On Upsun Cloud, every environment is tied to a Git branch, and a new environment inherits the data and services of its parent, including databases and file storage. With the GitHub integration, opening a pull request creates an environment with a copy of its parent's data, and merging removes it. Cloning data is the default, and you can switch it off. If production holds personal data, you can sanitize it in preview environments, for example with deploy hooks. Previews without a custom domain are hidden from search engines, but anyone with the URL can reach them until you set HTTP access control.
A choice of cloud. Upsun Cloud runs on AWS, Azure, Google Cloud, and OVHcloud, and you can deploy across providers and regions from the same configuration. Moving an existing project to another cloud means moving it to a region on that cloud: you set up the project there, push the same code and configuration, copy your files and data, then switch DNS. The region migration guide covers the steps, and you should plan for a brief outage at the switch.
Compliance coverage. Upsun Cloud's compliance coverage includes ISO 27001, SOC 2 Type 2, PCI DSS Level 1, HIPAA, and GDPR, but it varies by region. HIPAA workloads run in a single US region, and the Upsun Trust Center lists which regions each certification covers.
Your apps, services, workers, and routes live in one .upsun/config.yaml file, and you can run several apps in one project behind a single router. Pricing is resource-based: you set CPU, RAM, and disk for each app and service, per environment. Upsun Cloud autoscales applications and workers horizontally: it adds or removes instances when CPU or memory crosses the thresholds you set. It can do the same for MariaDB and PostgreSQL read-only replicas. You still choose the CPU, RAM, and disk for each instance. For more options, see our roundup of Heroku alternatives for PHP teams.
You can try it with a 15-day free trial.
Is Heroku shutting down?
Heroku hasn't announced a shutdown. Its February 2026 update describes a move to a sustaining engineering model focused on stability, security, reliability, and support. Apps continue to run, and credit card customers keep the same pricing and service.
Is Railway cheaper than Heroku?
It depends on your traffic. Railway's usage-based billing tends to cost less for services that are idle much of the time. Heroku's per-dyno prices are easier to forecast for steady workloads. Price your own setup on both pricing pages.
Does Railway have review apps like Heroku?
Yes. Railway's PR environments are created when a pull request opens and deleted when it's merged or closed. You turn them on in project settings.
Can I autoscale on Heroku's Standard dynos?
Heroku's built-in autoscaling covers Performance, Private, and Shield dynos. For Standard dynos, Heroku's docs point to third-party add-ons.
Does Railway support HIPAA?
Railway offers a HIPAA BAA as a paid add-on with a monthly spend threshold, under a shared responsibility model.
Where does Upsun Cloud fit?
Upsun Cloud suits teams leaving Heroku that want Git-driven deploys plus preview environments with a copy of production data, a choice between AWS, Azure, Google Cloud, and OVHcloud, or compliance coverage that includes ISO 27001, SOC 2 Type 2, PCI DSS Level 1, GDPR, and HIPAA in one US region.
