2016-03-01 13:26:35 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
|
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
|
|
|
|
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
|
|
|
|
|
|
|
|
|
nginx_build_config_cmd() {
|
2016-03-08 15:30:34 -05:00
|
|
|
declare desc="build nginx config to proxy app containers from command line"
|
2016-03-01 13:26:35 -08:00
|
|
|
local cmd="nginx:build-config"
|
|
|
|
|
[[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1
|
|
|
|
|
nginx_build_config "$2"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nginx_build_config_cmd "$@"
|