-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add db update factory hook to run blt updates on deploy. * Disable post-code-deploy hooks on acsf projects, disable post-code-update hook on 01live environments by default. * Fix typo in Cloud Hook functions. * Fixed typos and variable names. * Fix path for BLT cloud hooks script.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# | ||
# Factory Hook: db-update | ||
# | ||
# The existence of one or more executable files in the | ||
# /factory-hooks/db-update directory will prompt them to be run *instead of* the | ||
# regular database update (drush updatedb) command. So that update command will | ||
# normally be part of the commands executed below. | ||
# | ||
# Usage: post-code-deploy site env db-role domain custom-arg | ||
# Map the script inputs to convenient names. | ||
# Acquia hosting site / environment names | ||
site="$1" | ||
env="$2" | ||
# database role. (Not expected to be needed in most hook scripts.) | ||
db_role="$3" | ||
# The public domain name of the website. | ||
domain="$4" | ||
|
||
# BLT executable: | ||
blt="/var/www/html/$site.$env/vendor/acquia/blt/bin/blt" | ||
|
||
deployupdate="$blt deploy:update --define environment=$env --define drush.uri=$domain -v -y" | ||
|
||
$deployupdate |