Enable tracing in hooks when DOKKU_TRACE is set.

This makes it much easier to debug plugins.
Also source the 'dokkurc' file when starting dokku. This makes it easy
to define DOKKU_TRACE over ssh.
This commit is contained in:
Paul Lietar
2013-11-18 19:38:16 +00:00
parent 805c5a27c6
commit 83ce81fc51
10 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -eo pipefail
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
case "$1" in
git-hook)