From 551da5e11cd745ab0024f99fcd5f52397c787849 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Fri, 31 Mar 2017 12:09:35 -0400 Subject: [PATCH] Fixing deploy:update target. (#1281) --- phing/tasks/deploy.xml | 12 ++++++------ phing/tasks/setup.xml | 17 +++++++++-------- scripts/cloud-hooks/functions.sh | 15 +++++++-------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/phing/tasks/deploy.xml b/phing/tasks/deploy.xml index f8921cb7b..bf6fe2240 100644 --- a/phing/tasks/deploy.xml +++ b/phing/tasks/deploy.xml @@ -1,7 +1,7 @@ - + @@ -11,7 +11,7 @@ There are uncommitted changes, commit or stash these changes before deploying. - + @@ -153,9 +153,9 @@ - - - + + + @@ -275,7 +275,7 @@ - + Finished deploying updates to ${deploy.site.name} diff --git a/phing/tasks/setup.xml b/phing/tasks/setup.xml index fcd5baa88..de0960384 100644 --- a/phing/tasks/setup.xml +++ b/phing/tasks/setup.xml @@ -24,9 +24,9 @@ - - - + + + @@ -243,7 +243,9 @@ - + + @@ -254,7 +256,6 @@ - @@ -335,9 +336,9 @@ - - - + + + diff --git a/scripts/cloud-hooks/functions.sh b/scripts/cloud-hooks/functions.sh index da918a0b5..813913f2d 100644 --- a/scripts/cloud-hooks/functions.sh +++ b/scripts/cloud-hooks/functions.sh @@ -17,7 +17,6 @@ deploy_updates() { esac } - acsf_deploy() { sites=() # Prep for BLT commands. @@ -27,16 +26,16 @@ acsf_deploy() { echo "Running updates for environment: $target_env" - # Generate an array of all site URIs on the Factory from parsed output of Drush utility. - while IFS=$'\n' read -r line; do + # Generate an array of all site URIs on the Factory from parsed output of Drush utility. + while IFS=$'\n' read -r line; do sites[i++]="$line" done < <(drush @"${drush_alias}" --include=./drush acsf-tools-list | grep domains: -A 1 | grep 0: | sed -e 's/^[0: ]*//') unset IFS # Loop through each available site uri and run BLT deploy updates. for uri in "${sites[@]}"; do - #Override BLT default deploy uri. - blt deploy:update -Denvironment=$target_env -Ddrush.uri="$uri" + #Override BLT default deploy uri. + blt deploy:update -Denvironment=$target_env -Ddrush.uri="$uri" -Dblt.verbose=true if [ $? -ne 0 ]; then echo "Update errored." status=1; @@ -57,7 +56,7 @@ ace_deploy() { export PATH=$repo_root/vendor/bin:$PATH cd $repo_root - blt deploy:update -Denvironment=$target_env + blt deploy:update -Denvironment=$target_env -Dblt.verbose=true if [ $? -ne 0 ]; then echo "Update errored." status=1; @@ -65,7 +64,7 @@ ace_deploy() { echo "Finished updates for environment: $target_env" } - + deploy_install() { echo "Installing site for environment: $target_env" @@ -75,7 +74,7 @@ deploy_install() { export PATH=$repo_root/vendor/bin:$PATH cd $repo_root - blt deploy:drupal:install -Denvironment=$target_env + blt deploy:drupal:install -Denvironment=$target_env -Dblt.verbose=true if [ $? -ne 0 ]; then echo "Install errored." status=1;