diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index 7853d6931..cb4c7d810 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -22,7 +22,7 @@ restart_nginx () { if [[ -n "$NO_VHOST" ]]; then echo "-----> NO_VHOST config detected" -elif [[ -f "$DOKKU_ROOT/VHOST" ]]; then +elif [[ ! -f "$DOKKU_ROOT/$APP/VHOST" ]]; then dokku domains:setup $APP fi