Skip to content

Commit

Permalink
Merge pull request #38 from dokku/37-fix-port-retrieval
Browse files Browse the repository at this point in the history
fix: ensure ports are properly retrieved for newer dokku
  • Loading branch information
josegonzalez authored Aug 20, 2023
2 parents cce06c2 + d5d2b3f commit 01040c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx-pre-reload
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ redirect_nginx_pre_load_trigger() {
local NGINX_CONF="$APP_ROOT/nginx.conf"
local NGINX_TEMPLATE="$(dirname "$0")/templates/nginx.conf.sigil"
local PROXY_PORT_MAP=$(config_get "$APP" DOKKU_PROXY_PORT_MAP || true)
if [[ -z "$PROXY_PORT_MAP" ]]; then
PROXY_PORT_MAP="$(plugn trigger ports-get "$APP" | xargs)"
fi
PROXY_PORT_MAP="$(echo -e "${PROXY_PORT_MAP}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
local NGINX_LOCATION=$(get_nginx_location)
if [[ -z "$NGINX_LOCATION" ]]; then
Expand Down

0 comments on commit 01040c1

Please sign in to comment.