mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 08:29:56 +01:00
16 lines
515 B
Bash
Executable File
16 lines
515 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
|
|
|
APP="$1"
|
|
if [[ -f "$DOKKU_ROOT/$APP/IP.web.1" ]] && [[ -f "$DOKKU_ROOT/$APP/PORT.web.1" ]]; then
|
|
if [[ "$(is_app_vhost_enabled $APP)" == "false" ]]; then
|
|
dokku_log_info1 "VHOST support disabled. Skipping domains setup"
|
|
elif [[ ! -f "$DOKKU_ROOT/$APP/VHOST" ]]; then
|
|
dokku domains:setup $APP
|
|
fi
|
|
|
|
nginx_build_config $APP
|
|
fi
|