• Git-based deployment
  • PostgreSQL included
  • Hosted in South Africa
  • First month free

Migrate From Heroku: Keep the Simplicity, Lose the Uncertainty

What a Heroku migration involves, how Heroku maps to HCode, how to move your Heroku Postgres database, and how AWS, a VPS and HCode compare after Heroku.

Your app has run on Heroku for years without a hiccup. That's exactly the problem: nobody on the team remembers the setup. Then Heroku's February 2026 announcement turned "one day we should move" into a planning item.

If you're planning to migrate from Heroku, this guide explains what the move involves, compares the main hosting options, and shows how to transfer your app and PostgreSQL database to HCode, HostAfrica's app hosting platform.

Heroku details checked against Heroku's blog, pricing page, and Dev Center in November 2026.

Key Takeaways: Migrating From Heroku

Heroku isn't shutting down. Its focus has shifted to the platform's stability, security, and reliability rather than new features at the same pace; you can plan your move on your own schedule.

  • Status: Heroku runs on a "sustaining engineering model" focused on stability, security, reliability, and support.
  • The job: Plan for code, configuration, data, DNS, and any add-ons or external services your app depends on.
  • AWS: Full control, but you take on the ops work Heroku used to do for you.
  • HCode: Offers Git-based deployment, environment variables, and managed PostgreSQL, with South African hosting from R50 a month.

Should You Migrate From Heroku Now?

On 6 February 2026, Heroku announced it's moving to a "sustaining engineering model" focused on stability, security, reliability, and support. In plain words, it will keep the platform running well rather than build lots of new things. Heroku still describes itself as an "actively supported, production-ready platform".

Customers who pay by credit card see no changes to pricing, billing, service, or day-to-day use. Enterprise Account contracts are no longer offered to new customers, but existing ones are honoured and can renew.

There's no emergency. It's still worth planning a move if:

  1. A contract renewal is coming up.
  2. Your dollar bill keeps growing as the rand moves.
  3. Your roadmap depends on new platform features.

Plan the move on your terms, not theirs.

What a Heroku Migration Actually Involves

Every move has four parts. None is hard on its own; the trick is doing them in the right order.

Code

Your Heroku app's code usually moves as is. Check your runtime version and how the app builds. Heroku uses buildpacks, scripts that detect your language and build your app, and most platforms have an equivalent. Also look for anything Heroku-specific, such as add-ons or temporary file storage, which may need changes even if the code doesn't.

Config

Heroku stores settings as config vars, including the DATABASE_URL that tells your app where its database lives. Export them and recreate them as environment variables on the new platform.

Data

Moving your Heroku Postgres databases needs the most care. The usual pattern is a short maintenance window: put the app in read-only mode so nothing new is written, back up the database, restore it on the new host, then switch the app over.

Very large databases sometimes replicate data in real time to keep downtime to minutes. Most small apps don't need that, and a short window is simpler. Heroku recommends its backup tool for moderately loaded databases up to 20 GB; bigger or busier ones may need another strategy. Test the backup and restore first.

DNS

Finally, point your domain at the new host. Lowering your DNS TTL (how long servers cache your DNS records) 24 hours before the move helps the changes take effect faster.

Flow diagram showing the six steps of a Heroku migration: code, config, maintenance window, data, switch and test, and DNS

How Heroku Concepts Map to HCode

If you know Heroku, most of HCode will feel familiar.

On HerokuOn HCode
Dynos and process typesSeparate HCode projects, always on, sharing your plan's resources
BuildpacksAutomatic detection for Node.js, Python, Go, Ruby, and PHP, or your own Dockerfile
ProcfileOne project per process: a web process becomes a web app, and a worker becomes a background worker
Config varsEnvironment variables and encrypted secrets
git push herokuPush to a connected GitHub repository, or upload a .zip
Heroku PostgresManaged PostgreSQL on a private network
Heroku Key-Value StoreManaged Redis, available as a database option
Custom domains and SSLCustom domains with SSL
Release rollbackRoll back to the last good release with one click
Review appsNot available yet
Elements add-on marketplaceNo marketplace; connect external services through environment variables

A Heroku app with web and worker processes moves as two HCode projects; plan your memory across both. One-off commands, such as database migrations, need their own execution step; check how you'll run them on HCode rather than folding them into the build. The HostAfrica team can help you plan this and how the two projects share data.

To be fair to Heroku, it has a much broader add-on marketplace and supports a wider range of application stacks. HCode supports its listed languages directly, and stacks can run through a Dockerfile.

Diagram mapping Heroku dynos, Postgres, Key-Value Store, config vars, and git push to their HCode equivalents

Most of what you know carries over; the learning curve is short.

Moving Your Heroku Postgres Database

Here's the database move in plain steps.

  1. Pause writes. Turn on Heroku's maintenance mode to block web traffic. It doesn't stop worker dynos or scheduled jobs; stop those and any integrations that write to the database, then confirm nothing is still changing data.
  2. Capture a backup. Heroku's PGBackups tool takes a backup with heroku pg:backups:capture. Behind the scenes, it's a compressed pg_dump file.
  3. Download it. Save the backup file to your computer.
  4. Import it into HCode. HCode imports a .sql file or pg_dump archive into managed PostgreSQL, and it backs up the existing database before an import replaces it.
  5. Update DATABASE_URL. Point your app's environment variable at the new database.
  6. Verify the app. Check that the expected records are there, the app can read and write data, and background jobs run before you switch production traffic.

Flow diagram showing how to move a Heroku Postgres database to managed PostgreSQL on HCode, from pausing writes to verifying the app

Migrating From Heroku to AWS

Moving from Heroku to AWS gives you more control and access to a wide range of services. You also have to build what Heroku used to hand you. It's like swapping a full-service flat for an empty plot and a set of building plans.

Here's what's involved:

  • Compute: run your app on EC2, ECS, or a similar service.
  • Database: move your Heroku Postgres data into an Amazon RDS database, AWS's managed database service. Moving databases to Amazon uses the same backup-and-restore pattern, or AWS's migration service for bigger ones.
  • Networking: design private networks, firewall rules, load balancers, and certificates.
  • Infrastructure as code: most teams describe all of this in code; it can be rebuilt and reviewed.

AWS suits teams with DevOps skills or AWS credits to spend. If you migrate from Heroku to Kubernetes, you also manage containers, clusters, and deployments. It suits teams that need that control, but it's rarely the simplest option for a small app.

The real cost of AWS is time: someone has to design it, run it, and answer the alerts.

Where to Go After Heroku

If you're considering a move, the main options are a cloud provider like AWS, a Linux VPS, a managed platform like Render, or a hosting platform like HCode. Here's how they compare.

DestinationSetup effortWho manages serversDatabaseBillingWhere data lives
AWS (or Kubernetes)HighYouAmazon RDS, set up by youUS dollars, by usageThe AWS region you choose
Linux VPSMediumYou: patching, security, and backupsYou install and run PostgreSQLFixed monthly priceDepends on the provider
RenderLowThe platformManaged PostgresUS dollarsRegions outside South Africa
HCodeLowHostAfricaManaged PostgreSQL included; Redis availableFlat monthly price in randSouth Africa

Comparison of AWS or Kubernetes, a Linux VPS, and HCode by setup effort and what you manage yourself

If you want to keep Heroku's way of working, HCode is the shortest move.

Your Heroku Migration Checklist

  1. List your add-ons and decide what replaces each one.
  2. Export your config vars.
  3. Check your runtime and language versions.
  4. Confirm how database migrations and other one-off commands will run on the new platform.
  5. Plan a maintenance window and tell your users.
  6. Stop worker processes, scheduled jobs, and integrations that write to the old database.
  7. Back up and restore the database.
  8. Test everything on the new URL.
  9. Switch DNS.
  10. Keep Heroku running read-only for a few days.
  11. Cancel Heroku once you're sure.

What It Costs After the Move

SetupMonthly priceIn rand
Heroku Basic dyno + Postgres Essential-1$16About R313
Heroku Standard-1X dyno + Postgres Essential-1$34About R665
HCode Solo, with a managed databaseR50R50

Heroku prices are in US dollars. Rand estimates use an approximate exchange rate of R17 to the dollar and include an estimated 15% VAT. Actual costs may vary depending on exchange rates, taxes, and billing arrangements. HCode prices are taken directly from its pricing page.

This is a starting-price comparison, not a performance benchmark. Both Heroku dynos have 0.5 GB of RAM. HCode Solo includes 1 GB, 3 projects, and 1 database: room for a web app and a worker, though your workload decides whether it's enough.

Bar chart comparing the monthly cost in rand of two Heroku setups with HCode Solo

Our Recommendation

Moving off Heroku? Choose HCode.

HCode keeps the way of working Heroku users already know, and adds local hosting and rand pricing:

  • Heroku's workflow

    push from Git, set environment variables, and let the platform run things.

  • Managed PostgreSQL

    included on every plan.

  • Local hosting and rand pricing

    your app and data in South Africa, from R50 a month.

Would you rather run the server yourself? A HostAfrica VPS gives you your own server at a fixed monthly price. It suits teams with the skills to set it up and maintain it.

FAQs: Migrating From Heroku

Is Heroku Shutting Down?

No. Heroku is still supported but moved to a sustaining engineering model in February 2026. It calls itself an actively supported, production-ready platform, and credit card customers see no changes to pricing or service.

How Long Does a Heroku Migration Take?

It depends on your database size, background processes, add-ons, and testing needs. Preparation usually takes longer than the move, which may only require a short maintenance window for a small app.

Can I Migrate My Heroku Postgres Database Without Downtime?

A short maintenance window often suits smaller apps. Larger databases may need a more involved strategy, such as real-time replication, depending on what the destination supports.

What Replaces Heroku Add-Ons?

It depends on the add-on. Some can stay as external services, while others need an equivalent on your new platform. HCode includes managed PostgreSQL and offers Redis as a managed database option.

Should I Migrate From Heroku to AWS?

If your team has DevOps skills or AWS credits, it can make sense. If you chose Heroku to avoid managing servers, AWS brings that work back.

What Should I Check Before Migrating From Heroku?

Your runtime version, environment variables, add-ons, workers, scheduled jobs, and database. Test the backup and restore before switching traffic.

Can I Move My Heroku App Without Changing Its Code?

Often, yes, though you may need to adjust build settings, environment variables, and anything tied to Heroku-specific services.

Does HCode Support Docker?

Yes. HCode builds Node.js, Python, Go, Ruby, and PHP apps, or from your own Dockerfile.

Avatar for Sumesh R.

The Author

Sumesh R.

Sumesh Ramdin is a South African web developer and digital consultant with over 12 years of experience in web development, SEO, eCommerce, and digital marketing. He specialises in WordPress, Shopify, technical SEO, analytics, and digital solutions that help businesses grow online. He also writes practical technical articles covering web development, digital tools, SEO, and emerging technologies.

Ready to Make the Move?

Move your app to HCode, with managed PostgreSQL included.

Your first month is free with the codeHCODEFREE2026