-
Notifications
You must be signed in to change notification settings - Fork 3
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 thendrush updb -y
- Overwrite everything except
- 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 vialando drush pm-disable backup_migrate
, then uninstall it through the WebUI, then you can install it viadrush en backup_migrate
- for each module in
- 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