diff --git a/hooks/common/post-code-deploy/config-import.sh b/hooks/common/post-code-deploy/config-import.sh new file mode 100755 index 000000000..06f3028af --- /dev/null +++ b/hooks/common/post-code-deploy/config-import.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Cloud Hook: Import config +# +# Run drush config:import in all environments post code deploy. + +# Map the script inputs to convenient names. +site=$1 +target_env=$2 +drush_alias=$site'.'$target_env + +drush @$drush_alias config:import --yes diff --git a/hooks/common/post-code-update/config-import.sh b/hooks/common/post-code-update/config-import.sh new file mode 100755 index 000000000..06f3028af --- /dev/null +++ b/hooks/common/post-code-update/config-import.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Cloud Hook: Import config +# +# Run drush config:import in all environments post code deploy. + +# Map the script inputs to convenient names. +site=$1 +target_env=$2 +drush_alias=$site'.'$target_env + +drush @$drush_alias config:import --yes