Skip to content

Upgrade Notes

Phil Dibowitz edited this page Sep 28, 2022 · 6 revisions

WORK IN PROGRESS

In dev env:

  • Update the core staying within the major version. That's basically:
    • Overwrite everything except sites directory and then drush updb -y
  • Update each module:
    • for each module in drush ups | grep 'Update available', do: drush dl <module> -y && drush updb -y
    • Note that backup_migrate doesn't update well. You need to disable it via lando drush pm-disable backup_migrate, then uninstall it through the WebUI, then you can install it via drush en backup_migrate
  • When happy, make a commit (or have all these be small commits).

Then to update prod site:

  • Backup the database: drush sql-dump
  • From the WebUI, disable and uninstall troublesome modules (as of writing, just backup_migrate)
  • Optionally put site in maintenance mode (http://www.socallinuxexpo.org/admin/config/development/maintenance)
  • Merge PR, update checkout on site
  • Enable troublesome modules (to setup tables): drush en backup_migrate
  • Do DB updates, drush updb -y
  • Take site out of maintenance mode, if applicable
  • Flush the cache with drush cc all
Clone this wiki locally