Stop using VHOST when listing app domains and urls

This commit is contained in:
Hugo Peixoto
2020-07-19 16:29:35 +01:00
parent 1b7761ce8d
commit d5b2d0d98e
2 changed files with 1 additions and 4 deletions

View File

@@ -919,7 +919,7 @@ internal_get_app_urls() {
echo "http://$(<"$DOKKU_ROOT/HOSTNAME"):$p"
done
else
echo "$SCHEME://$(<"$DOKKU_ROOT/VHOST")"
echo "$SCHEME://$(<"$DOKKU_ROOT/HOSTNAME")"
fi
fi
}

View File

@@ -215,14 +215,11 @@ get_app_domains() {
verify_app_name "$1"
local APP=$1
local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"
local GLOBAL_HOSTNAME_PATH="$DOKKU_ROOT/HOSTNAME"
if [[ "$(is_app_vhost_enabled "$APP")" == "true" ]]; then
if [[ -f "$APP_VHOST_PATH" ]]; then
cat "$APP_VHOST_PATH"
elif [[ -f "$GLOBAL_VHOST_PATH" ]]; then
cat "$GLOBAL_VHOST_PATH"
elif [[ -f "$GLOBAL_HOSTNAME_PATH" ]]; then
cat "$GLOBAL_HOSTNAME_PATH"
fi