mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
15 lines
347 B
Bash
Executable File
15 lines
347 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
APP="$1"; PORT="$2"; IP="$3"
|
|
|
|
set +e; NO_VHOST=$(dokku config:get $APP NO_VHOST); set -e
|
|
|
|
if [[ -n "$NO_VHOST" ]]; then
|
|
echo "-----> NO_VHOST config detected"
|
|
elif [[ ! -f "$DOKKU_ROOT/$APP/VHOST" ]]; then
|
|
dokku domains:setup $APP
|
|
fi
|
|
|
|
dokku nginx:build-config $APP $PORT $IP
|