diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 8ff9386f6..152bec39f 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -323,7 +323,7 @@ nginx_build_config() { IS_DEPLOYED_WITH_LISTENERS=true fi - if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]]; }; then + if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]] && [[ -n "$PROXY_PORT_MAP" ]]; }; then if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]]; then if [[ "$(plugn trigger network-get-static-listeners "$APP" "web")" == "" ]]; then local IMAGE_TAG=$(get_running_image_tag "$APP") diff --git a/plugins/nginx-vhosts/post-create b/plugins/nginx-vhosts/post-create old mode 100644 new mode 100755