Updated Nov 18, 202611 min read

The Best Heroku Alternatives in 2026

Eight places to move a Heroku app, ranked, with how web dynos, workers, the scheduler, and Heroku Postgres map to each.

Illustration for The Best Heroku Alternatives in 2026

The best Heroku alternative in 2026 is Encore if you want the app in your own AWS or GCP account with Heroku's push-to-deploy feel, and Render if you want another hosted PaaS with the same mental model. Encore provisions the Postgres database, queues, cron jobs, and services you declare in code into your cloud account, so there are no add-ons to replace one by one. Render maps web dynos, workers, and the scheduler almost one to one. Railway suits projects with several connected services, ECS Express Mode is the do-it-yourself AWS path, and Coolify or Dokku cover self-hosting.

Heroku announced in February 2026 that it is moving to a sustaining engineering model: existing apps keep running, but new features are not planned. That changes the calculation for any team that was waiting on a runtime, a region, or a feature. This guide ranks eight alternatives for backend apps (a web process, a worker, scheduled jobs, and Postgres), shows how each one maps Heroku's pieces, and ends with a migration checklist. Facts were checked against each vendor's documentation on November 18, 2026.

What are the best Heroku alternatives?

  1. Encore: push to deploy into your own AWS or GCP account, with infrastructure from code.
  2. Render: the closest hosted match for web services, workers, cron jobs, and Postgres.
  3. Railway: projects of connected services and databases with a fast dashboard.
  4. ECS Express Mode: AWS's simplified container service, if you want to assemble AWS yourself.
  5. DigitalOcean App Platform: managed components next to DigitalOcean databases.
  6. Fly.io: apps on Fly Machines in regions you choose.
  7. Coolify: a self-hosted dashboard on servers you connect.
  8. Dokku: git push and Heroku buildpacks on a single server you run.

How do the Heroku alternatives compare?

RankPlatformWhere the app runsWeb and worker dynos becomeHeroku Postgres becomesScheduler becomes
1EncoreYour AWS or GCP accountServices with APIs, plus Pub/Sub subscribersRDS or Cloud SQL, declared in codeCron jobs declared in code
2RenderRender's infrastructureWeb services and background workersRender PostgresCron jobs
3RailwayRailway's infrastructureServices in a projectPostgres service from a templateCron schedule on a service
4ECS Express ModeYour AWS accountOne Express Mode service per processRDS, set up separatelyEventBridge Scheduler, set up separately
5DigitalOcean App PlatformDigitalOceanService and worker componentsDigitalOcean Managed DatabasesScheduled job components
6Fly.ioFly MachinesProcess groups in fly.tomlFly Managed Postgres or externalScheduled Machines or an in-app scheduler
7CoolifyServers you connectApplications or Compose servicesDatabase on your server or externalScheduled tasks
8DokkuOne server you runScaled process typesPostgres pluginCron entries in app.json

Why is Encore the top Heroku alternative?

Encore

Most teams leave Heroku for one of two reasons: the bill, or the need to run inside their own cloud account next to everything else. Assembling that on AWS by hand means ECS, RDS, SQS, a scheduler, IAM roles, and a VPC, which is the work Heroku used to hide. Encore is infrastructure from code: you declare the database, topics, cron jobs, and secrets a service uses in TypeScript or Go, and the Encore platform provisions the matching managed services in your AWS or GCP account on each push. Encore provisions an IAM role for the service, or a service account on GCP.

Here is a typical Heroku app (a web process, a worker, a nightly job, and Postgres) as Encore code:

// signups/signups.ts (encore.dev 1.58.9) import { api } from "encore.dev/api"; import { SQLDatabase } from "encore.dev/storage/sqldb"; import { Topic, Subscription } from "encore.dev/pubsub"; import { CronJob } from "encore.dev/cron"; import { secret } from "encore.dev/config"; // Heroku Postgres const db = new SQLDatabase("signups", { migrations: "./migrations" }); // Config var const postmarkToken = secret("PostmarkToken"); interface SignupCreated { userId: number; email: string; } const signupCreated = new Topic<SignupCreated>("signup-created", { deliveryGuarantee: "at-least-once", }); // Web dyno export const signup = api( { expose: true, method: "POST", path: "/signup" }, async (req: { email: string }): Promise<{ id: number }> => { const row = await db.queryRow<{ id: number }>` INSERT INTO users (email) VALUES (${req.email}) RETURNING id`; await signupCreated.publish({ userId: row!.id, email: req.email }); return { id: row!.id }; }, ); // Worker dyno const _welcome = new Subscription(signupCreated, "send-welcome-email", { handler: async (event) => { await fetch("https://api.postmarkapp.com/email", { method: "POST", headers: { "X-Postmark-Server-Token": postmarkToken(), "Content-Type": "application/json" }, body: JSON.stringify({ To: event.email, From: "hi@example.com", Subject: "Welcome", TextBody: "Thanks for signing up." }), }); }, }); // Heroku Scheduler export const purgeUnverified = api({}, async (): Promise<void> => { await db.exec`DELETE FROM users WHERE verified = false AND created_at < NOW() - INTERVAL '30 days'`; }); const _purge = new CronJob("purge-unverified", { title: "Purge unverified users", schedule: "0 3 * * *", endpoint: purgeUnverified, });

encore run starts Postgres and Pub/Sub locally, so the whole app runs on a laptop without Docker Compose. In AWS, the database becomes RDS and the topic becomes SNS with SQS; in GCP they become Cloud SQL and Pub/Sub. The cron job is managed by the Encore platform, so there is no scheduler resource to configure. The secret is stored in your cloud's secret manager. Sizing, networking, and regions are set in environment configuration, not in the code.

AWS or GCP charges you directly for compute and data. If you leave, encore build docker produces a standard image that runs on any Docker host.

Bookshop.org moved from a Rails monolith to Go services on Encore. Mason Stewart, CTO at Bookshop.org, said on the Bookshop customer page: "As a bunch of Rails developers coming to Go, the idea that we get a database stood up for us and we automatically get a connection felt like some of the best parts of Heroku, but we had control of our infrastructure."

You can move one service first and call the rest of the app still on Heroku. The Heroku migration guide covers each piece, and Migrate from Heroku to AWS walks through a full move.

Get started
brew install encoredev/tap/encore &&
encore app create
Copy

Run in your terminal to get started locally.

Is Render the closest Heroku replacement?

Render

For a hosted PaaS, yes. Render deploys from a connected repository or image and has direct counterparts for most of a Heroku app: a web dyno becomes a web service, a worker dyno becomes a background worker, and Heroku Scheduler tasks become cron jobs. A release-phase command such as a migration becomes a pre-deploy command, and service definitions can live in a Blueprint file in the repository.

Config vars move to environment variables, and Heroku Postgres moves to Render Postgres with a dump and restore. The app stays on Render's infrastructure, so this changes vendors rather than putting the app in your own cloud account. See Heroku vs Render for a closer comparison.

Try Render →

When is Railway a better fit?

Railway

Railway organizes an app as a project of services. A Rails app and a Sidekiq worker can deploy from the same repository with different start commands, a pre-deploy command runs migrations, and a Postgres template adds a database with connection variables. It builds with Railpack or a Dockerfile.

It suits teams with several services and databases that want one view of all of them. Backups and database version upgrades need to be configured for the new deployment, and like Render the standard offering runs on Railway's infrastructure. See Heroku vs Railway.

Try Railway →

Can you move from Heroku to AWS with ECS Express Mode?

ECS Express Mode

Yes, if you are willing to assemble the rest yourself. ECS Express Mode takes a container image and two IAM roles and creates a Fargate service with a URL, a load balancer with TLS, and auto scaling in your AWS account. It replaces App Runner, which AWS closed to new customers on April 30, 2026.

Express Mode covers the web process. The worker, RDS for Postgres, SQS for jobs, EventBridge Scheduler for scheduled tasks, the secrets, and the IAM that ties them together are separate pieces you define in Terraform, CDK, or the console, and you need a CI step that builds and pushes the image. For a team that already knows AWS, that is a reasonable trade for full control.

Try Amazon ECS →

When does DigitalOcean App Platform make sense?

DigitalOcean App Platform

DigitalOcean App Platform builds from a repository or deploys an image. The Procfile maps cleanly: web becomes the service run command, worker becomes a Worker component, and release can run as a PRE_DEPLOY job that blocks the deploy if it fails. Postgres runs on DigitalOcean Managed Databases. It fits teams already on DigitalOcean; the app stays on DigitalOcean rather than in an AWS or GCP account.

Try DigitalOcean App Platform →

When is Fly.io a good choice?

Fly.io

Fly.io runs apps on Machines configured in fly.toml, in regions you choose. Web and worker commands become process groups, and release_command runs migrations during a deploy. Placing the app near users only helps if the database is close too, so choose app and database regions together.

Try Fly.io →

Should you self-host with Coolify or Dokku?

Coolify

Coolify gives you a dashboard for deploying from a repository, Dockerfile, image, or Compose file to servers you connect over SSH, with domains and HTTPS handled. Dokku gives you git push deploys with Heroku buildpacks on one server, and adds Postgres through a plugin that links DATABASE_URL.

Both are cheap to run and familiar to use. The trade is that you now operate the servers: updates, persistent storage, backups, and recovery. A default Dokku setup runs on one machine, so an outage takes the app and its database down together.

Try Coolify →

Which Heroku alternative should you pick?

  • Pick Encore if you want the app in your own AWS or GCP account, with the database, queues, and scheduled jobs provisioned from code and a push-to-deploy workflow.
  • Pick Render if you want the closest hosted PaaS and do not need your own cloud account.
  • Pick Railway if you run several services and databases and want them in one project view.
  • Pick ECS Express Mode if your team knows AWS and wants to assemble each piece itself.
  • Pick DigitalOcean App Platform if you already run on DigitalOcean.
  • Pick Fly.io if region placement matters most.
  • Pick Coolify or Dokku if you want to run the platform on your own servers and accept the operations work.

The verdict: Encore for teams that want Heroku's simplicity in their own cloud, Render for a like-for-like hosted move, and Coolify or Dokku for the lowest bill when someone on the team is happy to run servers.

How do you move an existing Heroku application?

A typical app might have a web process, a job worker, and a PostgreSQL add-on. The web process is often the easiest part to move: build the application on the new platform, supply its configuration, and verify it through a temporary URL. The database and pending jobs need a coordinated switch because they continue to change while the old application is running.

How do you transfer the database?

Restore a copy of the Heroku database into the destination before cutover. This lets you test queries, migrations, and required extensions against the target PostgreSQL version without affecting the live application.

The final transfer needs a way to account for writes made after that copy. For a small database, a maintenance window with a final export and restore may be sufficient. A larger or busier application may need replication and a shorter write pause. Once the new application accepts writes, returning to the old database requires reconciling those changes; pointing DNS back does not transfer them.

How do you move workers and scheduled jobs?

If both deployments consume from the same queue, coordinate when the old workers stop and the new ones start. Let in-flight work finish or return to the queue according to the job system's behavior. Retries should not repeat an irreversible action such as sending a payment twice.

Scheduled jobs also need a handover time. Leaving the old scheduler active after enabling the new one can run the same task twice, even when the web traffic has already moved.

What about files and external services?

Uploads stored in an external bucket may be able to stay there, provided the new application has access. If you move them, existing database references must still resolve to the right files.

Treat other add-ons individually. An email provider may only need new credentials or an updated billing arrangement. A logging service may need a different integration. Verify that each provider permits access from the new environment before removing its Heroku attachment.

After switching traffic, exercise a real application flow: submit a request, confirm the database change, and check that the resulting job completes. Keep the old deployment available until the new service is working and any remaining background work has been accounted for.

Frequently asked questions

What is the best alternative to Heroku in 2026?

If you want to move off Heroku into your own AWS or GCP account and keep a push-to-deploy workflow, Encore provisions the database, queues, cron jobs, and services you declare in code. If you want another hosted PaaS with the same mental model, Render is the closest match, and Railway is a good fit for projects with several connected services.

Is Heroku shutting down?

No. In February 2026 Heroku announced a move to a sustaining engineering model: existing apps stay supported and credit card customers can keep using it, but development focuses on stability and security rather than new features, and new enterprise contracts are not offered to new customers.

How do I move a Heroku app to my own AWS account?

You can assemble it yourself with ECS Express Mode or ECS on Fargate for the web and worker processes, RDS for Postgres, SQS for jobs, and EventBridge Scheduler for scheduled tasks, plus the IAM and networking that connects them. Encore does that provisioning from declarations in your code. Either way, the database contents need a planned export and restore or replication.

Can I keep my existing application when moving from Heroku?

Yes. On Render, Railway, DigitalOcean App Platform, Fly.io, Coolify, and Dokku, the same repository or image runs with its Procfile commands mapped to services. ECS needs a container image. Encore asks you to declare services and resources with its APIs, which you can do one service at a time while the rest stays on Heroku.

Can I self-host a Heroku-like platform?

Yes. Coolify gives you a dashboard for deploying apps and databases on servers you connect, and Dokku gives you git push deploys with Heroku buildpacks on a server you run. Updates, backups, and recovery become your job.

Deploy to your cloud on AWS and Google Cloud
without managing infrastructure

Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.

~/orders — claude
Claude Code
Claude Code v2.1.180Opus 5.5~/orders