Created
February 14, 2017 00:24
-
-
Save snize/b45f33c2ef010c609f733660e99bdec5 to your computer and use it in GitHub Desktop.
blt toggle-modules task for acquia cloud post-db-copy hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Cloud Hook: post-db-copy | |
# | |
# The post-db-copy hook is run whenever you use the Workflow page to copy a | |
# database from one environment to another. See ../README.md for | |
# details. | |
# | |
# Usage: post-db-copy site target-env db-name source-env | |
site="$1" | |
target_env="$2" | |
db_name="$3" | |
source_env="$4" | |
echo "$site.$target_env: Received copy of database $db_name from $source_env." | |
repo_root="/var/www/html/$site.$target_env" | |
export PATH=$repo_root/vendor/bin:$PATH | |
cd $repo_root | |
blt setup:toggle-modules -Denvironment=$target_env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment