Files
dokku/plugins/nginx-vhosts/core-post-deploy

21 lines
540 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
2020-02-10 02:40:59 -05:00
trigger-nginx-vhosts-core-post-deploy() {
declare desc="nginx-vhosts core-post-deploy plugin trigger"
2020-02-10 02:40:59 -05:00
declare trigger="nginx_core_post_deploy"
declare APP="$1"
local HAS_NETWORK_CONFIG
if [[ "$(plugn trigger proxy-type "$APP")" != "nginx" ]]; then
2020-02-10 02:40:59 -05:00
return
fi
plugn trigger proxy-build-config "$APP"
2016-02-14 18:43:40 -08:00
}
2020-02-10 02:40:59 -05:00
trigger-nginx-vhosts-core-post-deploy "$@"