sh db-update Factory Hook

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh db-update Factory Hook相关的知识,希望对你有一定的参考价值。

#!/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"

com="$blt deploy:update --define environment=$env --define drush.uri=$domain -v -y"

$com

以上是关于sh db-update Factory Hook的主要内容,如果未能解决你的问题,请参考以下文章

sh db-update工厂钩子

php Content Hub / Lift Factory Hook:pre-settings-php

sh Puppet pre-commit hook

sh Puppet pre-commit hook

sh Wakatime Git post-commit hook

sh 'binding.pry'检查 - 预先提交git hook