Use updated VHOST file instead of URL file when outputting the current URL to an app

Note that this may include more than one URL to an app
This commit is contained in:
Jose Diaz-Gonzalez
2014-12-11 02:16:52 -05:00
parent 11b126a845
commit 0865ff3f79

View File

@@ -39,8 +39,8 @@ case "$1" in
[[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1
APP="$2";
if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then
echo $(< "$DOKKU_ROOT/$APP/URL")
if [[ -f "$DOKKU_ROOT/$APP/VHOST" ]]; then
echo $(< "$DOKKU_ROOT/$APP/VHOST")
fi
;;