Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note
titleWARNING

This method will completely blow out your database and your ENTIRE commit history on ALL Pantheon environments. Be sure to back everything up!

Context

Reasons you might want to change the upstream on an existing project vs starting a new project:

  • billing is already set up, and a hassle to redo
  • site IDs are in use in CI like Travis
  • lots of users are associated with the dashboard
  • the site is part of another organization and needs to stay that way

How to

Backing up

Make sure you have a local copy of the codebase via git. You can use this to rebase against the new git upstream. See Creating Pantheon Sites and Choosing an Upstream under Syncing remotes on how to replay history from one remote over top of another.

Export your database from the dashboard and download it locally. You'll want to re-import it later.

Changing the upstream

Visit your pantheon dashboard

Image Removed

replace #dev/code with /configure and reload the page. Voilà you are back at the distro selection screen and can re-install.

Image Removed

 

Panel

(warning) note that if you are importing a database that defines the standard installation profile for the site, but are moving to a distro like Panopoly (or vice versa), you'll need to take some extra steps to rectify the system table and more.

(info) you cannot specify a random upstream on github. New upstreams need to be Pantheon-approved via a ticket in our organizational dashboard.

 

 

 

...

Terminus

If you are looking to remove the default upstream from a Pantheon site...

  1. Make sure you have Terminus installed
  2. Run the following command, replacing my-site-name with your site's Pantheon ID:
    terminus site:upstream:set my-site empty