diff --git a/.ddev/config.local.yaml.example b/.ddev/config.local.yaml.example index db98e60c8..4f740f79b 100644 --- a/.ddev/config.local.yaml.example +++ b/.ddev/config.local.yaml.example @@ -64,3 +64,19 @@ hooks: - exec: drush sql:sanitize --yes # Login as admin. - exec-host: ddev login + post-pull: + # Run DB updates. + - exec: drush updb + # Clear cache before config import. + - exec: drush cr + # Import config. + - exec: drush cim -y + # Reindex. + - exec: drush sapi-c + - exec: drush sapi-i + # Compile theme. + - exec-host: ddev robo theme:compile + # Get rid of sensitive user data. + - exec: drush sql:sanitize --yes + # Login as admin. + - exec-host: ddev login diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 3ae10704a..631b50c9e 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -284,3 +284,5 @@ corepack_enable: false hooks: post-import-db: - exec: drush sql:sanitize --yes + post-pull: + - exec: drush sql:sanitize --yes