Skip to content

Stacksync × Supabase New York: AI That Does the WorkNov 17Reserve your spot

The Heroku migration checklist we use with customers (including Salesforce sync)

A Heroku migration checklist for Build: sync app configuration, validate in parallel, plan data and add-ons, and coordinate Salesforce sync with Stacksync.

Author
Build.io team
Published
Read time
7 min read
The Heroku migration checklist we use with customers (including Salesforce sync)
APP TIPS

A Heroku migration to Build starts with the direct Heroku integration: sync your application configuration, run Build alongside Heroku, and switch traffic when you're ready. Your database can stay on Heroku while you validate or run the app on Build, then move separately. If you use Heroku Connect, plan its replacement with Stacksync as part of the database move. This checklist covers the app, data, services and rollback decisions along the way.

Three buckets for a Heroku migration: items that carry over, items that need a data or service plan, and Heroku Connect, replaced when the database moves

What should you inventory before you move anything?

Start with a full picture of what runs on Heroku today. Most surprises in a migration come from something nobody wrote down.

  • Every app and pipeline, including staging and review apps
  • Process types from the Procfile: web, workers, release phase, one-off tasks
  • Config vars, and which ones are set by add-ons rather than by you
  • Every add-on, with its plan and what depends on it
  • Heroku Scheduler jobs and their timing
  • Custom domains and SSL certificates
  • Log drains and monitoring
  • Heroku Connect: objects, fields, sync direction, and app code that relies on it

Check which config vars belong to add-ons. Build imports these variables from Heroku, so they may still point to existing services until you deliberately update those connections.

How do we sort the work?

Once the inventory is done, we put each item into one of three buckets. This table separates configuration that carries over from services and data that need their own plan:

Decision flow: app configuration is imported, Heroku Connect is replaced with the database move, everything else gets a plan
BucketTypical itemsWhat we do
Carries overHeroku buildpacks, Procfile process types, config vars, pipelinesUse Build's Heroku integration to import configuration, then validate
Needs a service or data planPostgres, Redis, scheduled jobs, logging, domains and SSLCheck Build equivalents, data requirements and any external connections
Needs a replacement when the database movesHeroku ConnectKeep it on Heroku during app validation; coordinate the later handover to Stacksync

Why our Stacksync partnership matters

Heroku Connect needs its own plan because it only syncs Salesforce with Heroku Postgres. Moving the app to Build can happen first, but moving the database means replacing that connection. For applications that read and write Salesforce data through Postgres, this is a production dependency, not just another add-on to swap.

That's why Build partners with Stacksync. Build provides the application platform and can manage the migration end to end; Stacksync replaces Heroku Connect with two-way Salesforce sync to the new database. Together, we coordinate the database move and sync handover in one plan, with named owners, validation steps and an agreed rollback path.

The partnership gives teams a way to leave Heroku without building and maintaining their own Salesforce integration. Your engineers can focus on checking that the application behaves correctly, while Build and Stacksync coordinate the platform and sync work. See Stacksync's Heroku Connect alternative page for more on the replacement.

What makes migrating to Build different?

You do not need to recreate the application environment by hand. Build imports Heroku application configuration, environment variables, add-on configuration and pipelines. Most conventional Heroku apps run without code changes.

Build also provides managed Postgres and Redis, deployment pipelines, review apps, logs and metrics. Check the services your app needs before moving data. Your team can run the migration with engineering support, work alongside Build engineers, or have us manage it end to end. Engineer-led migration support is included with Enterprise plans.

What's the order of operations?

Use the Build Heroku migration guide for the platform steps. The application, database and Salesforce sync can move in stages.

  • 01Agree the inventory and owners. Include data, third-party services, production workers and the rollback plan.
  • 02Connect your Heroku account. Authorize the integration in Build Settings once per Build account.
  • 03Create and sync the Build app. Set its team, pipeline and stage. In Configure Sync, select the Heroku source and Build destination. On a first sync, select everything except Releases and Images, then trigger the sync.
  • 04Start the web process and validate. Synced apps start with dynos at zero. Check configuration and application behavior. The imported DATABASE_URL still points to Heroku Postgres; the sync copies configuration, not data.
  • 05Repeat for other environments. Start with staging. Keep workers stopped until you intend them to consume real jobs, since imported connections can still point to production services. Heroku changes continue syncing to Build while you validate.
  • 06Choose when to move traffic. After validation, switch DNS to Build when ready. You can keep using Heroku Postgres initially or coordinate this with the data move.
  • 07Plan and prepare services and data. Choose Build equivalents or retain suitable external services. For Postgres, provision Schema To Go with import_url where appropriate; use a replication-based plan for larger production databases. Test data integrity and the cutover procedure.
  • 08Prepare the Salesforce sync replacement, if needed. Agree mappings, schema compatibility and safe parallel validation with Stacksync before moving away from Heroku Postgres. Keep one connector responsible for production writes to Salesforce.
  • 09Switch the database and dependent services when ready. Attach the new database as DATABASE, stop config-var sync to prevent the old DATABASE_URL overwriting it, and redeploy. Coordinate any write pause, final data catch-up and Salesforce sync handover.
  • 10Verify production and retain rollback. Check traffic, data, jobs and Salesforce writes. Agree how new writes would be handled if you roll back; changing DNS alone does not reverse a data migration.
  • 11Decommission after the agreed observation period. Take final backups and remove Heroku resources only when no application or service still needs them.

What does the Salesforce sync section of the checklist look like?

For apps that use Heroku Connect, we add these checks to the plan:

  • Export the Heroku Connect mapping list: every object, every field, and the direction
  • Identify which tables the app writes to, since those need two-way sync
  • Search code for Heroku Connect columns, status fields and the trigger log
  • Confirm Salesforce user and permissions for the new sync, set up on the Stacksync Salesforce connector
  • Agree on how long both syncs run side by side
  • Agree on the moment Heroku Connect is turned off, and who does it

On a joint migration, Stacksync handles the sync configuration and Build can manage the database move and cutover around it. Agree owners with both teams before starting.

Book a Stacksync demo: see the Heroku Connect replacement live

What goes on the cutover-day checklist?

Five cutover day checks: scope, data, traffic, Salesforce and rollback
  • Confirm whether this switch covers traffic, data, or both
  • Any required maintenance or write pause communicated
  • For a data move: final catch-up completed and verified, config-var sync stopped, new database attached and app redeployed
  • App validated on Build against the intended database
  • DNS switched and SSL verified
  • If Salesforce sync is in scope: a test record created in the app shows up in Salesforce, and the reverse
  • Background jobs run in the intended environment without duplicate consumers or scheduled runs
  • Rollback steps written down and still possible

What happens after cutover?

Retire resources by workstream, after the agreed observation and rollback period. If only the app runtime has moved, keep Heroku Postgres, Heroku Connect and any services it still uses. Once data and sync have moved too, take final backups, remove unused Heroku Connect and database resources, cancel remaining unused add-ons, and close the old apps.

Planning a move off Heroku? Talk to Build about your migration. Run it yourself with engineering support, work alongside our team, or have us manage the migration end to end. If you're moving a database that uses Heroku Connect, we'll bring Stacksync into the plan for Salesforce sync.

Tick off the Salesforce sync step with two-way sync

FAQ

Frequently asked questions

What is the hardest part of a Heroku migration?
Data and service dependencies usually need the most planning. If you use Heroku Connect, its replacement needs coordinating with the database move. You can validate or run the app on Build first while retaining Heroku Postgres and Heroku Connect.
How long should both syncs run side by side?
Long enough to compare record counts and sample records across the objects you care about, including some records changed on each side. The right length depends on how much data and change you have.
Do I need to replace every add-on before cutover?
No. The app can run on Build against existing services, including Heroku Postgres, while you move them separately. Before changing each service connection, validate its replacement and data. Replace Heroku Connect when you move away from Heroku Postgres.
Can I migrate staging first?
Yes. Sync staging to Build first and validate configuration and behavior. Rehearse the data move, Salesforce sync handover and rollback separately before changing production data.

About the author

Build.io team
Build.io team
Build.io

The team behind Build.io, a managed application platform for teams moving off Heroku. Build partners with Stacksync on migrations where the app depends on Salesforce data.

All posts by Build.io team

About Stacksync

Stacksync powers real-time, two-way sync between CRMs, ERPs, and databases. Engineers sync data at scale and automate workflows, not dirty API plumbing.

Coworkers laughing in front of a laptop in a casual office setting

You just read how it should work.
See it run on your own data.