mirror of
https://github.com/dokku/dokku.git
synced 2026-09-01 19:49:25 +02:00
fix(nginx): make post-create executable and guard empty port maps
The post-create trigger was not executable so plugn skipped it. Also skip generating the 502 config when PROXY_PORT_MAP is empty (e.g. after ports:clear) to avoid a sigil template index error.
This commit is contained in:
@@ -323,7 +323,7 @@ nginx_build_config() {
|
||||
IS_DEPLOYED_WITH_LISTENERS=true
|
||||
fi
|
||||
|
||||
if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]]; }; then
|
||||
if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]] && [[ -n "$PROXY_PORT_MAP" ]]; }; then
|
||||
if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]]; then
|
||||
if [[ "$(plugn trigger network-get-static-listeners "$APP" "web")" == "" ]]; then
|
||||
local IMAGE_TAG=$(get_running_image_tag "$APP")
|
||||
|
||||
0
plugins/nginx-vhosts/post-create
Normal file → Executable file
0
plugins/nginx-vhosts/post-create
Normal file → Executable file
Reference in New Issue
Block a user