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:
1 parent
9111902542
commit
8109c9c569
1 file changed
+3
-3
@@ -80,9 +80,9 @@ EOF
|
|||||||
echo " Reloading nginx"
|
echo " Reloading nginx"
|
||||||
restart_nginx
|
restart_nginx
|
||||||
else
|
else
|
||||||
if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then
|
if [[ -f "$DOKKU_ROOT/$APP/VHOST" ]]; then
|
||||||
echo "-----> NO_VHOST set, deleting $APP/URL"
|
echo "-----> NO_VHOST set, deleting $APP/VHOST"
|
||||||
rm "$DOKKU_ROOT/$APP/URL"
|
rm "$DOKKU_ROOT/$APP/VHOST"
|
||||||
fi
|
fi
|
||||||
if [[ -f "$DOKKU_ROOT/$APP/nginx.conf" ]]; then
|
if [[ -f "$DOKKU_ROOT/$APP/nginx.conf" ]]; then
|
||||||
echo "-----> NO_VHOST set, deleting nginx.conf"
|
echo "-----> NO_VHOST set, deleting nginx.conf"
|
||||||
|
|||||||
Reference in new issue
Block a user