jordankaiser
1/13/2020 - 5:06 PM

Drupal Config Sync

Drupal Config Sync

This used to sync field settings between environments. It is not used to sync content, only field settings. So something like changed the field order on the Form Display form.

Sync Process

  1. Backup all associated databases.
  2. drush config-export from the authoritative environment.
  3. Commit changes to /sites/default/sync on authortative environment.
  4. On target environment where you are doing your work (devsr.com) svnu the /sites/default/sync folder. The svn auto update hook may take care of this for you.
  5. Resolve that svnu. Always favor webform changes coming from the authoritative environment.
  6. Run drush config-import on devsr.com.
  7. Do your development changes on devsr.com. Like creating/changing views or whatever.
  8. Once done on devsr.com run drush config export. Commit changes.
  9. On target environment (prodsr.com for example) svnu to get /sites/default/sync changes.
  10. Resolve that svnu favoring prod's webform stuff.
  11. Run drush config-import.