eval the output of "dokku config --export" to get env config

This should theoretically be safe, as "--export" forces the `dokku config` command to return 0 in all cases, and it should only output lines that are "valid" environment variables
This commit is contained in:
Jose Diaz-Gonzalez
2015-08-20 21:31:08 -04:00
parent 6566be04e5
commit afe65a86fb
4 changed files with 7 additions and 7 deletions

View File

@@ -51,8 +51,8 @@ fi
# source global and in-app envs to get DOKKU_CHECKS_WAIT and any other necessary vars
[[ -f "$DOKKU_ROOT/ENV" ]] && source $DOKKU_ROOT/ENV
[[ -f "$DOKKU_ROOT/$APP/ENV" ]] && source $DOKKU_ROOT/$APP/ENV
eval $(dokku config --global $APP --export)
eval $(dokku config $APP --export)
# Wait this many seconds (default 5) for server to start before running checks.
WAIT="${DOKKU_CHECKS_WAIT:-5}"