13 lines
451 B
Bash
Executable File
13 lines
451 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Trigger: runs before dokku validates + reloads nginx for an app.
|
|
# Regenerates our per-app conf so it always references the current upstream
|
|
# (the upstream name changes if the app's port mapping changes).
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$(dirname "${BASH_SOURCE[0]}")/functions"
|
|
|
|
APP="${1:-}"
|
|
[[ -z "$APP" ]] && exit 0
|
|
fn-google-auth-app-enabled "$APP" || exit 0
|
|
fn-ga-write-conf "$APP" >/dev/null || true
|