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.
This commit is contained in:
Jose Diaz-Gonzalez
2014-12-11 02:10:49 -05:00
parent 9111902542
commit 8109c9c569

View File

@@ -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"