feat: redirect output in every case as appropriate

This commit is contained in:
Jose Diaz-Gonzalez
2024-03-14 10:34:08 -04:00
parent 7d00e2c422
commit aa72794711
4 changed files with 30 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ trigger-git-receive-app() {
declare desc="builds the app from the local git repository"
declare trigger="receive-app"
if [[ "$DOKKU_REDIRECT_OUTPUT" != "true" ]]; then
export DOKKU_REDIRECT_OUTPUT=true
exec &> >(tee >(tee | logger -i -t "dokku-${DOKKU_PID}"))
fi
git_receive_app "$@"
return $?
}