Merge pull request #2407 from dokku/2367-core-post-deploy

Move core post-deploy triggers to core-post-deploy
This commit is contained in:
Jose Diaz-Gonzalez
2016-10-29 21:16:45 -06:00
committed by GitHub
9 changed files with 60 additions and 33 deletions

View File

@@ -5,9 +5,9 @@ source "$PLUGIN_AVAILABLE_PATH/domains/functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
nginx_post_deploy() {
declare desc="nginx-vhosts post-deploy plugin trigger"
local trigger="nginx_post_deploy"
nginx_core_post_deploy() {
declare desc="nginx-vhosts core-post-deploy plugin trigger"
local trigger="nginx_core_post_deploy"
local APP="$1"
if [[ -f "$DOKKU_ROOT/$APP/IP.web.1" ]] && [[ -f "$DOKKU_ROOT/$APP/PORT.web.1" ]]; then
if [[ "$(is_app_vhost_enabled "$APP")" == "false" ]]; then
@@ -21,5 +21,5 @@ nginx_post_deploy() {
}
if [[ "$(get_app_proxy_type "$1")" == "nginx" ]]; then
nginx_post_deploy "$@"
nginx_core_post_deploy "$@"
fi