mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
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:
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user