Recommended: Use Git
If you're comfortable with Git, we recommend that you keep your site in Git mode all the time and use it to keep your modules, plugins, and themes up to date. If you are not using Git, you will need to use SFTP or the Drupal or WordPress web interface to update non-core code.
Pantheon help page: Starting with Git
Alternative: SFTP workflow
Keep your site in Git mode most of the time and use the Pantheon dashboard to keep your core up to date. Make sure scheduled backups are enabled on all environments once your site is on a paid plan, so your site is backed up every day automatically.
- When an update is available on the Pantheon dashboard:
- Make sure you are Git mode (dev environment backups cannot be created or restored when your site is in SFTP mode).
- If you are not, refresh your dashboard, commit any changes in your dev environment, and switch to Git mode.
- Back up your dev environment.
- Apply the updates - See Applying Upstream Updates
- Clear caches and run any database updates
- Continue from step 3.
- When you need to update a specific contrib or custom module, plugin, or theme (Note: Do not update core or distributions yourself - use #1 above):
- Make sure you are Git mode (backups can only be made in Git mode).
- If you are not, refresh your dashboard, commit any changes in your dev environment, and switch to Git mode.
- Back up your dev environment.
- Switch to SFTP mode.
- Run the update (use the Drupal or WP web interface, or use SFTP to upload the code).
- Clear caches and run any database updates.
- Commit your changes using the dashboard.
- Switch back to Git mode (make sure all changes have been committed first).
- Test the update:
- Back up your test environment.
- Using the dashboard, pull the code updates from dev to test, and your data and files from live (make sure you don't mind blowing away any content on your test environment).
- Clear caches and run any database updates.
- Test thoroughly to make sure nothing breaks.
- Push the update live:
- Back up your live environment.
- Using the dashboard, pull the code updates from test to live.
- Clear caches and run any database updates.
- Sanity-check your live site.
- Pantheon documentation: Developing on Pantheon directly with SFTP mode