From 8109c9c5696e6891e11fd6ff9a12cd188e7f4680 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 11 Dec 2014 02:10:49 -0500 Subject: [PATCH] Delete the VHOST file, not the URL file, when NO_VHOST is set The URL file is useful for understanding what port docker decided to host our app internally on. --- plugins/nginx-vhosts/post-deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index cb4c7d810..9312056ba 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -80,9 +80,9 @@ EOF echo " Reloading nginx" restart_nginx else - if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then - echo "-----> NO_VHOST set, deleting $APP/URL" - rm "$DOKKU_ROOT/$APP/URL" + if [[ -f "$DOKKU_ROOT/$APP/VHOST" ]]; then + echo "-----> NO_VHOST set, deleting $APP/VHOST" + rm "$DOKKU_ROOT/$APP/VHOST" fi if [[ -f "$DOKKU_ROOT/$APP/nginx.conf" ]]; then echo "-----> NO_VHOST set, deleting nginx.conf"