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

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.
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.
Run in your terminal to get started locally.
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.
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.
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.
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 →
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.