Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Security
  • Private Spaces
  • Migrating Apps From the Common Runtime to a Private Space

Migrating Apps From the Common Runtime to a Private Space

English — 日本語に切り替える

Last updated October 11, 2024

Table of Contents

  • Before the Migration
  • The Migration Process

This guide helps you migrate your apps from the Common Runtime to Private Spaces with minimal downtime. You can’t directly transfer an app from the Common Runtime to a Private Space. Due to the architectural differences in the runtime infrastructure, you must manually migrate your apps. The steps in this guide apply to both Private Spaces and Shield Private Spaces.

Heroku Enterprise customers with Premier or Signature Success Plans can request in-depth guidance on migration from the Customer Solutions Architecture (CSA) team. Learn more about Expert Coaching Sessions here or contact your Salesforce account executive.

Before the Migration

Configure a Custom Maintenance Page

Configure a custom page on your Common Runtime app to show to users during maintenance mode while your app migrates.

Plan For Downtime

Reduce the TTL values for your DNS entries to 1 minute a few days before the migration to minimize downtime. The migration process includes updating your DNS entries to point to the new app running in the Private Space. Plan for some downtime to allow for DNS updates to propagate.

Migrating data to private-tier data services also requires a period of downtime.

Review Add-ons Availability and Requirements

You must reprovision your add-ons on your migrated apps. Add-ons offer varying levels of availability for Private Spaces. Consult the Add-ons Runtime Availability table to check for potential issues.

Available: These add-ons are compatible with Private Space regions, but get provisioned and operate outside of the space. Network traffic between your private dynos and the add-on resource sends across the public Internet.

Available and installable in space: These add-ons are provisioned within the space itself. All network traffic between dynos and the add-on resource stays within the private network environment.

Unavailable: These add-ons can neither be provisioned within the space, nor are they compatible with the Private Space region(s).

Consider also that Private Spaces has features that replace the functionality of some add-ons. For example, if you used an add-on to provide static IPs in the Common Runtime, you no longer need it as that’s a built-in functionality of spaces.

Consult the documentation for each add-on, as the provider may have specific instructions for the best method of migrating to Private Spaces.

You can read more about using add-ons in Private Spaces here.

The Migration Process

The following steps describe the typical migration process. You can also follow these steps, with some minor modifications, to migrate apps from Private Space to Private Space, or from a Private Space to a Shield Space.

Heroku Enterprise customers with Premier or Signature Success Plans can request in-depth guidance on migration from the Customer Solutions Architecture (CSA) team.

  1. Create a new application in the Private Space.
  2. Deploy your code to your new Private Spaces app using the same methods you used for the Common Runtime.
  3. Provision your add-ons and scale your dynos. If you used a Heroku button or the Platform API with an app.json manifest file to deploy your code, your add-ons and dynos were already automatically configured.
  4. If you use Heroku data services, it’s recommended that you migrate your data. While it’s possible for an app in a Private Space to continue using Heroku data services in the Common Runtime, migrating them to a space provides additional security.
    • Heroku Postgres: To minimize downtime, use the follower changeover method. This method allows your existing database to continue operating while the new private database provisions. Dataclips that associated with the old database must be reassigned to the new database. To recover these dataclips, open a support ticket via help.heroku.com.
    • Heroku Key-Value Store: Use the fork method to migrate while your app is in maintenance mode.
    • Heroku Kafka: Follow these instructions to migrate while in maintenance mode.
  5. Configure custom domains and SSL. Certain apps can have the same domain temporarily assigned to both your existing Common Runtime and new Private Spaces apps to reduce migration downtime. Contact Heroku Support to request that your custom domains be “forced” onto your new Private Spaces app. If they confirm that it isn’t possible, remove the custom domains from your Common Runtime app and add them to the new Private Spaces app.
  6. Update your DNS entries to point to the new Private Space app. If you reduced the TTL value before migration, you can restore it to normal.
  7. Monitor your new Private Spaces app. Monitor your app logs for any errors, and check your metrics for any signs of performance issues.

If you migrated your Postgres databases, ensure you contacted support to associate your dataclips from your old databases to the new ones before you delete any databases.

 

If you didn’t migrate your data services and they’re still attached to your Common Runtime app, don’t delete the old app. If you do, the attached databases get deleted along with the old app.

When you’re satisfied that the migration completed successfully, destroy the old Common Runtime app.

Keep reading

  • Private Spaces

Feedback

Log in to submit feedback.

Working with Private Spaces Migrating Apps in Private Spaces

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices