diff --git a/plugins/domains/commands b/plugins/domains/commands index 68e220ce2..80d1c1603 100755 --- a/plugins/domains/commands +++ b/plugins/domains/commands @@ -55,7 +55,6 @@ case "$1" in pluginhook post-domains-update $APP echo "-----> Added $3 to $APP" - dokku nginx:build-config $APP ;; domains:clear) @@ -68,7 +67,6 @@ case "$1" in pluginhook post-domains-update $APP echo "-----> Cleared domains in $APP" - dokku nginx:build-config $APP ;; domains:remove) @@ -87,7 +85,6 @@ case "$1" in pluginhook post-domains-update $APP echo "-----> Removed $3 from $APP" - dokku nginx:build-config $APP ;; help | domains:help) diff --git a/plugins/nginx-vhosts/post-domains-update b/plugins/nginx-vhosts/post-domains-update new file mode 100755 index 000000000..e2bb35ebd --- /dev/null +++ b/plugins/nginx-vhosts/post-domains-update @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x + +APP="$1" + +dokku nginx:build-config $APP