Skip to content

Instantly share code, notes, and snippets.

@jimdelois
Created January 28, 2016 19:06
Show Gist options
  • Save jimdelois/bc83708e81f9ae0e5c95 to your computer and use it in GitHub Desktop.
Save jimdelois/bc83708e81f9ae0e5c95 to your computer and use it in GitHub Desktop.
Dokku Trace
root@dev-ubuntu-512mb-nyc2-01:~# dokku ps:restart test-project
+ parse_args ps:restart test-project
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ ps:restart =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ [[ ! ps:restart =~ plugin:* ]]
++ id -un
+ export SSH_USER=root
+ SSH_USER=root
+ sudo -u dokku -E -H /usr/local/bin/dokku ps:restart test-project
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args ps:restart test-project
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ ps:restart =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ ps:restart =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth ps:restart test-project
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default ps:restart test-project
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands ps:restart test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands ps:restart test-project
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands ps:restart test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/ps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ [[ -z test-project ]]
+ APP=test-project
++ get_running_image_tag test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
++ CIDS=($(get_app_container_ids $APP))
+++ get_app_container_ids test-project
+++ local APP=test-project
+++ local CONTAINER_TYPE=
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ [[ -f /home/dokku/test-project/CONTAINER ]]
+++ [[ -n '' ]]
+++ CONTAINER_PATTERN='/home/dokku/test-project/CONTAINER.*'
+++ shopt -s nullglob
+++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
+++ DOKKU_CIDS+=' '
+++ DOKKU_CIDS+=9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+++ DOKKU_CIDS+=' '
+++ shopt -u nullglob
+++ echo 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+++ awk -F: '{ print $2 }'
+++ awk '{ print $2 }'
+++ egrep 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+++ docker ps -a --no-trunc
++ RUNNING_IMAGE_TAG=latest
++ echo latest
+ IMAGE_TAG=latest
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ is_deployed test-project
+ local APP=test-project
+ [[ -f /home/dokku/test-project/CONTAINER ]]
++ ls /home/dokku/test-project/CONTAINER.web.1
++ echo 0
+ [[ 0 -eq 0 ]]
+ return 0
+ release_and_deploy test-project latest
+ local APP=test-project
+ local IMAGE_TAG=latest
++ get_app_image_name test-project latest
++ local APP=test-project
++ local IMAGE_TAG=latest
+++ get_app_image_repo test-project
+++ local APP=test-project
+++ local IMAGE_REPO=dokku/test-project
+++ [[ -z test-project ]]
+++ echo dokku/test-project
++ local IMAGE_REPO=dokku/test-project
++ [[ -z test-project ]]
++ [[ -n latest ]]
++ IMAGE=dokku/test-project:latest
++ verify_image dokku/test-project:latest
++ local IMAGE=dokku/test-project:latest
++ docker inspect dokku/test-project:latest
++ return 0
++ echo dokku/test-project:latest
+ local IMAGE=dokku/test-project:latest
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ verify_image dokku/test-project:latest
+ local IMAGE=dokku/test-project:latest
+ docker inspect dokku/test-project:latest
+ return 0
+ is_image_herokuish_based dokku/test-project:latest
+ [[ ! -f /home/ubuntu/.circlerc ]]
+ local DOCKER_ARGS=--rm
+ docker run --label=dokku --entrypoint=/bin/sh --rm dokku/test-project:latest -c 'test -f /exec'
+ IMAGE_SOURCE_TYPE=dockerfile
++ dokku config:get test-project DOKKU_SKIP_DEPLOY
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_SKIP_DEPLOY
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_SKIP_DEPLOY
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_SKIP_DEPLOY
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_SKIP_DEPLOY
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_SKIP_DEPLOY
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_SKIP_DEPLOY
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_DEPLOY ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_SKIP_DEPLOY
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_SKIP_DEPLOY='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
++ true
+ DOKKU_APP_SKIP_DEPLOY=
++ dokku config:get --global DOKKU_SKIP_DEPLOY
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get --global DOKKU_SKIP_DEPLOY
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get --global DOKKU_SKIP_DEPLOY
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get --global DOKKU_SKIP_DEPLOY
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get --global DOKKU_SKIP_DEPLOY
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get --global DOKKU_SKIP_DEPLOY
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get --global DOKKU_SKIP_DEPLOY
+ case "$2" in
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ APP=--global
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ [[ global = \a\p\p ]]
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_DEPLOY ]]
+ config_create /home/dokku/ENV
+ local ENV_FILE=/home/dokku/ENV
+ [[ -f /home/dokku/ENV ]]
+ [[ ! -s /home/dokku/ENV ]]
+ return 0
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands config:get --global DOKKU_SKIP_DEPLOY
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands config:get --global DOKKU_SKIP_DEPLOY
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands config:get --global DOKKU_SKIP_DEPLOY
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ DOKKU_GLOBAL_SKIP_DEPLOY=
+ DOKKU_SKIP_DEPLOY=
+ dokku_log_info1 'Releasing test-project (dokku/test-project:latest)...'
+ echo '-----> Releasing test-project (dokku/test-project:latest)...'
-----> Releasing test-project (dokku/test-project:latest)...
+ dokku release test-project dockerfile latest
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args release test-project dockerfile latest
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ release =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ release =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth release test-project dockerfile latest
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default release test-project dockerfile latest
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands release test-project dockerfile latest
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ source /var/lib/dokku/plugins/available/nginx-vhosts/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/certs/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/domains/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ case "$1" in
+ APP=test-project
+ IMAGE_SOURCE_TYPE=dockerfile
+ IMAGE_TAG=latest
++ get_app_image_name test-project latest
++ local APP=test-project
++ local IMAGE_TAG=latest
+++ get_app_image_repo test-project
+++ local APP=test-project
+++ local IMAGE_REPO=dokku/test-project
+++ [[ -z test-project ]]
+++ echo dokku/test-project
++ local IMAGE_REPO=dokku/test-project
++ [[ -z test-project ]]
++ [[ -n latest ]]
++ IMAGE=dokku/test-project:latest
++ verify_image dokku/test-project:latest
++ local IMAGE=dokku/test-project:latest
++ docker inspect dokku/test-project:latest
++ return 0
++ echo dokku/test-project:latest
+ IMAGE=dokku/test-project:latest
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ case "$IMAGE_SOURCE_TYPE" in
+ plugn trigger pre-release-dockerfile test-project latest
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ plugn trigger post-release-dockerfile test-project latest
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands release test-project dockerfile latest
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands release test-project dockerfile latest
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands release test-project dockerfile latest
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ [[ '' != \t\r\u\e ]]
+ dokku_log_info1 'Deploying test-project (dokku/test-project:latest)...'
+ echo '-----> Deploying test-project (dokku/test-project:latest)...'
-----> Deploying test-project (dokku/test-project:latest)...
+ dokku deploy test-project latest
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args deploy test-project latest
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ deploy =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ deploy =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth deploy test-project latest
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default deploy test-project latest
+ return 0
+ case "$1" in
+ [[ -z test-project ]]
+ APP=test-project
+ IMAGE_TAG=latest
++ get_app_image_name test-project latest
++ local APP=test-project
++ local IMAGE_TAG=latest
+++ get_app_image_repo test-project
+++ local APP=test-project
+++ local IMAGE_REPO=dokku/test-project
+++ [[ -z test-project ]]
+++ echo dokku/test-project
++ local IMAGE_REPO=dokku/test-project
++ [[ -z test-project ]]
++ [[ -n latest ]]
++ IMAGE=dokku/test-project:latest
++ verify_image dokku/test-project:latest
++ local IMAGE=dokku/test-project:latest
++ docker inspect dokku/test-project:latest
++ return 0
++ echo dokku/test-project:latest
+ IMAGE=dokku/test-project:latest
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ plugn trigger pre-deploy test-project latest
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/ps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ APP=test-project
+ generate_scale_file test-project
+ local APP=test-project
+ local IMAGE_TAG=
++ get_app_image_name test-project
++ local APP=test-project
++ local IMAGE_TAG=
+++ get_app_image_repo test-project
+++ local APP=test-project
+++ local IMAGE_REPO=dokku/test-project
+++ [[ -z test-project ]]
+++ echo dokku/test-project
++ local IMAGE_REPO=dokku/test-project
++ [[ -z test-project ]]
++ [[ -n '' ]]
++ IMAGE=dokku/test-project:latest
++ echo dokku/test-project:latest
+ local IMAGE=dokku/test-project:latest
+ local DOKKU_SCALE_FILE=/home/dokku/test-project/DOKKU_SCALE
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ copy_from_image dokku/test-project:latest /app/DOKKU_SCALE /home/dokku/test-project
+ [[ ! -f /home/dokku/test-project/DOKKU_SCALE ]]
+ dokku_log_info1_quiet 'DOKKU_SCALE file found (/home/dokku/test-project/DOKKU_SCALE)'
+ [[ -z '' ]]
+ echo '-----> DOKKU_SCALE file found (/home/dokku/test-project/DOKKU_SCALE)'
-----> DOKKU_SCALE file found (/home/dokku/test-project/DOKKU_SCALE)
+ print_dokku_scale_file test-project
+ local APP=test-project
+ local DOKKU_SCALE_FILE=/home/dokku/test-project/DOKKU_SCALE
+ read -r line
+ dokku_log_info2_quiet web=1
+ [[ -z '' ]]
+ echo '=====> web=1'
=====> web=1
+ read -r line
+ [[ -n '' ]]
+ is_image_herokuish_based dokku/test-project:latest
+ [[ ! -f /home/ubuntu/.circlerc ]]
+ local DOCKER_ARGS=--rm
+ docker run --label=dokku --entrypoint=/bin/sh --rm dokku/test-project:latest -c 'test -f /exec'
+ DOKKU_SCALE_FILE=/home/dokku/test-project/DOKKU_SCALE
++ get_app_container_ids test-project
++ local APP=test-project
++ local CONTAINER_TYPE=
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
++ [[ -f /home/dokku/test-project/CONTAINER ]]
++ [[ -n '' ]]
++ CONTAINER_PATTERN='/home/dokku/test-project/CONTAINER.*'
++ shopt -s nullglob
++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
++ DOKKU_CIDS+=' '
++ DOKKU_CIDS+=9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
++ DOKKU_CIDS+=' '
++ shopt -u nullglob
++ echo 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+ oldids=9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
++ dokku config:get test-project DOKKU_SKIP_ALL_CHECKS
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_SKIP_ALL_CHECKS
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_SKIP_ALL_CHECKS
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_SKIP_ALL_CHECKS
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_SKIP_ALL_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_SKIP_ALL_CHECKS
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_SKIP_ALL_CHECKS
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_ALL_CHECKS ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_SKIP_ALL_CHECKS
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_SKIP_ALL_CHECKS='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
++ true
+ DOKKU_APP_SKIP_ALL_CHECKS=
++ dokku config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_SKIP_DEFAULT_CHECKS
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_SKIP_DEFAULT_CHECKS
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_SKIP_DEFAULT_CHECKS='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
++ true
+ DOKKU_APP_SKIP_DEFAULT_CHECKS=
++ dokku config:get --global DOKKU_SKIP_ALL_CHECKS
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get --global DOKKU_SKIP_ALL_CHECKS
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get --global DOKKU_SKIP_ALL_CHECKS
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get --global DOKKU_SKIP_ALL_CHECKS
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get --global DOKKU_SKIP_ALL_CHECKS
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get --global DOKKU_SKIP_ALL_CHECKS
+ case "$2" in
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ APP=--global
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ [[ global = \a\p\p ]]
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_ALL_CHECKS ]]
+ config_create /home/dokku/ENV
+ local ENV_FILE=/home/dokku/ENV
+ [[ -f /home/dokku/ENV ]]
+ [[ ! -s /home/dokku/ENV ]]
+ return 0
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands config:get --global DOKKU_SKIP_ALL_CHECKS
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands config:get --global DOKKU_SKIP_ALL_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ DOKKU_GLOBAL_SKIP_ALL_CHECKS=
++ dokku config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ case "$2" in
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ APP=--global
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ [[ global = \a\p\p ]]
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]]
+ config_create /home/dokku/ENV
+ local ENV_FILE=/home/dokku/ENV
+ [[ -f /home/dokku/ENV ]]
+ [[ ! -s /home/dokku/ENV ]]
+ return 0
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ DOKKU_GLOBAL_SKIP_DEFAULT_CHECKS=
+ DOKKU_SKIP_ALL_CHECKS=
+ DOKKU_SKIP_DEFAULT_CHECKS=
++ plugn trigger docker-args-deploy test-project latest
++ :
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ cat
+ STDIN=
+ APP=test-project
+ IMAGE_TAG=latest
++ get_app_image_name test-project latest
++ local APP=test-project
++ local IMAGE_TAG=latest
+++ get_app_image_repo test-project
+++ local APP=test-project
+++ local IMAGE_REPO=dokku/test-project
+++ [[ -z test-project ]]
+++ echo dokku/test-project
++ local IMAGE_REPO=dokku/test-project
++ [[ -z test-project ]]
++ [[ -n latest ]]
++ IMAGE=dokku/test-project:latest
++ verify_image dokku/test-project:latest
++ local IMAGE=dokku/test-project:latest
++ docker inspect dokku/test-project:latest
++ return 0
++ echo dokku/test-project:latest
+ IMAGE=dokku/test-project:latest
+ DOCKERFILE_ENV_FILE=/home/dokku/test-project/DOCKERFILE_ENV_FILE
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ is_image_herokuish_based dokku/test-project:latest
+ [[ ! -f /home/ubuntu/.circlerc ]]
+ local DOCKER_ARGS=--rm
+ docker run --label=dokku --entrypoint=/bin/sh --rm dokku/test-project:latest -c 'test -f /exec'
+ sed -e 's:^export ::g' -e 's:='\'':=:g' -e 's:'\''$::g'
+ config_export global
+ local CONFIG_TYPE=global
+ local APP=
+ local ENV_FILE=/home/dokku//ENV
+ [[ global == \g\l\o\b\a\l ]]
+ ENV_FILE=/home/dokku/ENV
+ [[ ! -f /home/dokku/ENV ]]
+ [[ ! -s /home/dokku/ENV ]]
+ return 0
+ sed -e 's:^export ::g' -e 's:='\'':=:g' -e 's:'\''$::g'
+ config_export app test-project
+ local CONFIG_TYPE=app
+ local APP=test-project
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ app == \g\l\o\b\a\l ]]
+ [[ ! -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
++ cut '-d ' -f2-
++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ VARS='DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
+ awk '{print "export " $0}'
+ echo 'DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
+ return 0
+ echo ' --env-file=/home/dokku/test-project/DOCKERFILE_ENV_FILE'
++ cat
+ STDIN=
+ APP=test-project
+ IMAGE_SOURCE_TYPE=latest
+ case "$0" in
+ PHASE=DEPLOY
+ FILE_PREFIX=DOCKER_OPTIONS_
+ PHASE_FILE_PATH=/home/dokku/test-project/DOCKER_OPTIONS_DEPLOY
+ output=
+ [[ -f /home/dokku/test-project/DOCKER_OPTIONS_DEPLOY ]]
+ echo ''
+ DOKKU_DEFAULT_DOCKER_ARGS=' --env-file=/home/dokku/test-project/DOCKERFILE_ENV_FILE'
+ read -r line
+ [[ web=1 =~ ^#.* ]]
+ TRIM=web=1
+ PROC_TYPE=web
+ PROC_COUNT=1
+ CONTAINER_INDEX=1
+ [[ 1 -le 1 ]]
+ id=
+ port=
+ ipaddr=
+ DOKKU_CONTAINER_ID_FILE=/home/dokku/test-project/CONTAINER.web.1
+ DOKKU_IP_FILE=/home/dokku/test-project/IP.web.1
+ DOKKU_PORT_FILE=/home/dokku/test-project/PORT.web.1
+ DOCKER_ARGS=' --env-file=/home/dokku/test-project/DOCKERFILE_ENV_FILE'
+ DOCKER_ARGS+=' -e DYNO='\''web.1'\'' '
+ [[ -n 1 ]]
+ DOCKER_ARGS+=' -e TRACE=true '
++ plugn trigger bind-external-ip test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/plugins/available/nginx-vhosts/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/certs/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/domains/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ APP=test-project
++ is_app_vhost_enabled test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
+++ config_get test-project NO_VHOST
+++ [[ test-project == \c\o\n\f\i\g\:\g\e\t ]]
+++ set -- config:get test-project NO_VHOST
+++ config_parse_args config:get test-project NO_VHOST
+++ case "$2" in
+++ APP=test-project
+++ ENV_FILE=/home/dokku/test-project/ENV
+++ DOKKU_CONFIG_TYPE=app
+++ DOKKU_CONFIG_RESTART=true
+++ [[ app = \a\p\p ]]
+++ [[ -z test-project ]]
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+++ [[ -z NO_VHOST ]]
+++ config_create /home/dokku/test-project/ENV
+++ local ENV_FILE=/home/dokku/test-project/ENV
+++ [[ -f /home/dokku/test-project/ENV ]]
+++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ KEY=NO_VHOST
+++ sed -e 's/^'\''//' -e 's/'\''$//'
+++ cut -d= -f2-
+++ grep '^export NO_VHOST='
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ local NO_VHOST=
++ local APP_VHOST_ENABLED=true
++ [[ '' == \1 ]]
++ [[ -f /home/dokku/test-project/nginx.conf ]]
++ [[ ! -f /home/dokku/test-project/VHOST ]]
++ echo true
+ [[ true == \f\a\l\s\e ]]
++ is_global_vhost_enabled test-project
++ local GLOBAL_VHOST_FILE=/home/dokku/VHOST
++ local GLOBAL_VHOST_ENABLED=true
++ [[ -f /home/dokku/VHOST ]]
++ local GLOBAL_VHOST=dev.bonkerstech.com
+++ get_ipv4_regex
++++ _ipv4_regex
++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
+++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
+++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
+++ get_ipv6_regex
++++ _ipv6_regex
+++++ _ipv4_regex
+++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|'
++++ RE_IPV6='([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
++++ echo '([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
+++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}'
+++ echo '([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
++ [[ -z dev.bonkerstech.com ]]
++ [[ dev.bonkerstech.com =~ ([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
++ [[ dev.bonkerstech.com =~ ([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
++ echo true
+ [[ true == \f\a\l\s\e ]]
+ echo false
+ BIND_EXTERNAL=false
+ [[ -n '' ]]
+ [[ -z '' ]]
++ dokku config:get test-project DOKKU_DOCKERFILE_PORT
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_DOCKERFILE_PORT
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_DOCKERFILE_PORT
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_DOCKERFILE_PORT
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_DOCKERFILE_PORT
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_DOCKERFILE_PORT
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_DOCKERFILE_PORT
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_DOCKERFILE_PORT ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_DOCKERFILE_PORT
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_DOCKERFILE_PORT='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
++ true
+ DOKKU_DOCKERFILE_PORT=
++ dokku config:get test-project DOKKU_DOCKERFILE_START_CMD
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_DOCKERFILE_START_CMD
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_DOCKERFILE_START_CMD
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_DOCKERFILE_START_CMD
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_DOCKERFILE_START_CMD
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_DOCKERFILE_START_CMD
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_DOCKERFILE_START_CMD
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_DOCKERFILE_START_CMD ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_DOCKERFILE_START_CMD
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_DOCKERFILE_START_CMD='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
+ START_CMD=
+ [[ web == \w\e\b ]]
+ port=5000
+ [[ false = \t\r\u\e ]]
++ docker run --label=dokku -d -e PORT=5000 --env-file=/home/dokku/test-project/DOCKERFILE_ENV_FILE -e 'DYNO='\''web.1'\''' -e TRACE=true dokku/test-project:latest
+ id=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
++ docker inspect '--format={{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ ipaddr=172.17.0.3
+ [[ -z 172.17.0.3 ]]
+ [[ '' = \t\r\u\e ]]
+ trap kill_new INT TERM EXIT
+ dokku_log_info1 'Running pre-flight checks'
+ echo '-----> Running pre-flight checks'
-----> Running pre-flight checks
+ plugn trigger check-deploy test-project 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e web 5000 172.17.0.3
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ APP=test-project
+ DOKKU_APP_CONTAINER_ID=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ DOKKU_APP_CONTAINER_TYPE=web
+ DOKKU_APP_LISTEN_PORT=5000
+ DOKKU_APP_LISTEN_IP=172.17.0.3
+ [[ -z 5000 ]]
+ [[ -z 172.17.0.3 ]]
+ [[ -z 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e ]]
++ config_export global
++ local CONFIG_TYPE=global
++ local APP=
++ local ENV_FILE=/home/dokku//ENV
++ [[ global == \g\l\o\b\a\l ]]
++ ENV_FILE=/home/dokku/ENV
++ [[ ! -f /home/dokku/ENV ]]
++ [[ ! -s /home/dokku/ENV ]]
++ return 0
+ eval ''
++ config_export app test-project
++ local CONFIG_TYPE=app
++ local APP=test-project
++ local ENV_FILE=/home/dokku/test-project/ENV
++ [[ app == \g\l\o\b\a\l ]]
++ [[ ! -f /home/dokku/test-project/ENV ]]
++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ cut '-d ' -f2-
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ VARS='DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ awk '{print "export " $0}'
++ echo 'DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ return 0
+ eval 'export DOKKU_APP_RESTORE='\''1'\''
export DOKKU_NGINX_PORT='\''80'\'''
++ export DOKKU_APP_RESTORE=1
++ DOKKU_APP_RESTORE=1
++ export DOKKU_NGINX_PORT=80
++ DOKKU_NGINX_PORT=80
+ WAIT=5
+ TIMEOUT=30
+ ATTEMPTS=5
++ mktemp -d /tmp/CHECKS.XXXXX
+ TMPDIR=/tmp/CHECKS.pAm7K
+ docker cp 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e:/app/CHECKS /tmp/CHECKS.pAm7K
+ true
+ FILENAME=/tmp/CHECKS.pAm7K/CHECKS
+ trap cleanup EXIT
+ [[ ! -s /tmp/CHECKS.pAm7K/CHECKS ]]
+ [[ '' = \t\r\u\e ]]
+ [[ web == \w\e\b ]]
+ dokku_log_verbose 'For more efficient zero downtime deployments, create a file CHECKS.'
+ echo ' For more efficient zero downtime deployments, create a file CHECKS.'
For more efficient zero downtime deployments, create a file CHECKS.
+ dokku_log_verbose 'See http://dokku.viewdocs.io/dokku/checks-examples.md for examples'
+ echo ' See http://dokku.viewdocs.io/dokku/checks-examples.md for examples'
See http://dokku.viewdocs.io/dokku/checks-examples.md for examples
+ dokku_log_verbose 'CHECKS file not found in container: Running simple container check...'
+ echo ' CHECKS file not found in container: Running simple container check...'
CHECKS file not found in container: Running simple container check...
+ rm -rf /tmp/CHECKS.pAm7K
+ DOKKU_DEFAULT_CHECKS_WAIT=10
+ dokku_log_info1 'Waiting for 10 seconds ...'
+ echo '-----> Waiting for 10 seconds ...'
-----> Waiting for 10 seconds ...
+ sleep 10
+ is_container_running 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ local CID=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
++ docker inspect -f '{{.State.Running}}' 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ local CONTAINER_STATUS=true
+ [[ true == \t\r\u\e ]]
+ return 0
++ docker inspect -f '{{ .RestartCount }}' 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ container_restarts=0
+ [[ 0 -ne 0 ]]
+ dokku_log_info1 'Default container check successful!'
+ echo '-----> Default container check successful!'
-----> Default container check successful!
+ exit 0
+ cleanup
+ rm -rf /tmp/CHECKS.pAm7K
+ dokku_log_info2_quiet 'test-project container output:'
+ [[ -z '' ]]
+ echo '=====> test-project container output:'
=====> test-project container output:
+ dokku_container_log_verbose_quiet 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ local CID=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ shift
+ OIFS='
'
+ IFS='
'
++ docker logs 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[init] executing /run.d/01-install.sh'
+ [[ -z '' ]]
+ echo ' [init] executing /run.d/01-install.sh'
[init] executing /run.d/01-install.sh
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[init] executing /run.d/03-debug.sh'
+ [[ -z '' ]]
+ echo ' [init] executing /run.d/03-debug.sh'
[init] executing /run.d/03-debug.sh
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[debug] Opcache set to PERFORMANCE, NOT watching for file changes'
+ [[ -z '' ]]
+ echo ' [debug] Opcache set to PERFORMANCE, NOT watching for file changes'
[debug] Opcache set to PERFORMANCE, NOT watching for file changes
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[init] executing /run.d/10-nginx.sh'
+ [[ -z '' ]]
+ echo ' [init] executing /run.d/10-nginx.sh'
[init] executing /run.d/10-nginx.sh
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[nginx] setting sensible defaults'
+ [[ -z '' ]]
+ echo ' [nginx] setting sensible defaults'
[nginx] setting sensible defaults
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[nginx] piping logs to STDOUT'
+ [[ -z '' ]]
+ echo ' [nginx] piping logs to STDOUT'
[nginx] piping logs to STDOUT
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[init] executing /run.d/98-newrelic.sh'
+ [[ -z '' ]]
+ echo ' [init] executing /run.d/98-newrelic.sh'
[init] executing /run.d/98-newrelic.sh
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[init] executing /run.d/99-phpfpm.sh'
+ [[ -z '' ]]
+ echo ' [init] executing /run.d/99-phpfpm.sh'
[init] executing /run.d/99-phpfpm.sh
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[php-fpm] starting (background)'
+ [[ -z '' ]]
+ echo ' [php-fpm] starting (background)'
[php-fpm] starting (background)
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[nginx] start (foreground)'
+ [[ -z '' ]]
+ echo ' [nginx] start (foreground)'
[nginx] start (foreground)
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[28-Jan-2016 19:04:44] NOTICE: fpm is running, pid 29'
+ [[ -z '' ]]
+ echo ' [28-Jan-2016 19:04:44] NOTICE: fpm is running, pid 29'
[28-Jan-2016 19:04:44] NOTICE: fpm is running, pid 29
+ for line in '$(docker logs $CID 2>&1)'
+ dokku_log_verbose_quiet '[28-Jan-2016 19:04:44] NOTICE: ready to handle connections'
+ [[ -z '' ]]
+ echo ' [28-Jan-2016 19:04:44] NOTICE: ready to handle connections'
[28-Jan-2016 19:04:44] NOTICE: ready to handle connections
+ IFS='
'
+ dokku_log_info2_quiet 'end test-project container output'
+ [[ -z '' ]]
+ echo '=====> end test-project container output'
=====> end test-project container output
+ trap - INT TERM EXIT
+ [[ -n 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e ]]
+ echo 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ [[ -n 172.17.0.3 ]]
+ echo 172.17.0.3
+ [[ -n 5000 ]]
+ echo 5000
+ [[ -n 5000 ]]
+ echo http://dev.bonkerstech.com:5000
+ rm -f /home/dokku/test-project/CONTAINER /home/dokku/test-project/IP /home/dokku/test-project/PORT
+ CONTAINER_INDEX=2
+ [[ 2 -le 1 ]]
+ [[ 1 == 0 ]]
+ CONTAINER_IDX_OFFSET=2
+ for container_state_filetype in CONTAINER IP PORT
+ cd /home/dokku/test-project
+ xargs rm -f
+ tail -n +2
+ sort -t . -k 3 -n
+ find . -maxdepth 1 -name 'CONTAINER.web.*' -printf '%f\n'
+ for container_state_filetype in CONTAINER IP PORT
+ cd /home/dokku/test-project
+ xargs rm -f
+ tail -n +2
+ sort -t . -k 3 -n
+ find . -maxdepth 1 -name 'IP.web.*' -printf '%f\n'
+ for container_state_filetype in CONTAINER IP PORT
+ cd /home/dokku/test-project
+ xargs rm -f
+ tail -n +2
+ sort -t . -k 3 -n
+ find . -maxdepth 1 -name 'PORT.web.*' -printf '%f\n'
+ read -r line
+ [[ -n '' ]]
+ dokku_log_info1 'Running post-deploy'
+ echo '-----> Running post-deploy'
-----> Running post-deploy
+ plugn trigger post-deploy test-project 5000 172.17.0.3
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ APP=test-project
+ APP_ROOT=/home/dokku/test-project
++ stat -t /home/dokku/test-project/CONTAINER.web.1
+ [[ -z /home/dokku/test-project/CONTAINER.web.1 65 8 81b4 1000 1000 fd01 1181387 1 0 0 1454001535 1454007895 1454007895 0 4096 ]]
+ for container in '"$APP_ROOT"/CONTAINER.*'
++ sed -r 's/.*CONTAINER\.(.*)/\1/'
++ echo /home/dokku/test-project/CONTAINER.web.1
+ DYNO=web.1
+ NAME=test-project.web.1
+ CURRENT_CONTAINER_ID=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
++ xargs
++ docker ps -a -q -f 'name=^.?test-project.web.1$'
+ PREVIOUS_CIDS=9b94d23a6ec0
+ [[ -n 9b94d23a6ec0 ]]
+ dokku_log_info1_quiet 'Found previous container(s) (9b94d23a6ec0) named test-project.web.1'
+ [[ -z '' ]]
+ echo '-----> Found previous container(s) (9b94d23a6ec0) named test-project.web.1'
-----> Found previous container(s) (9b94d23a6ec0) named test-project.web.1
+ for cid in '$PREVIOUS_CIDS'
++ docker inspect -f '{{.State.Status}}' 9b94d23a6ec0
+ PREVIOUS_CONTAINER_STATUS=running
+ [[ running != \d\e\a\d ]]
++ date +%s
+ CONTAINER_DATE_NAME=test-project.web.1.1454007895
+ dokku_log_info2_quiet 'renaming container (9b94d23a6ec0) test-project.web.1 to test-project.web.1.1454007895'
+ [[ -z '' ]]
+ echo '=====> renaming container (9b94d23a6ec0) test-project.web.1 to test-project.web.1.1454007895'
=====> renaming container (9b94d23a6ec0) test-project.web.1 to test-project.web.1.1454007895
+ docker rename test-project.web.1 test-project.web.1.1454007895
++ cat /home/dokku/test-project/CONTAINER.web.1
+ ID=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
++ tr -d /
++ docker inspect -f '{{.Name}}' 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ CURRENT_NAME=gigantic_roentgen
+ dokku_log_info2_quiet 'renaming container (1497fc838115) gigantic_roentgen to test-project.web.1'
+ [[ -z '' ]]
+ echo '=====> renaming container (1497fc838115) gigantic_roentgen to test-project.web.1'
=====> renaming container (1497fc838115) gigantic_roentgen to test-project.web.1
+ docker rename gigantic_roentgen test-project.web.1
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/nginx-vhosts/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/certs/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/domains/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ APP=test-project
+ [[ -f /home/dokku/test-project/IP.web.1 ]]
+ [[ -f /home/dokku/test-project/PORT.web.1 ]]
++ is_app_vhost_enabled test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
+++ config_get test-project NO_VHOST
+++ [[ test-project == \c\o\n\f\i\g\:\g\e\t ]]
+++ set -- config:get test-project NO_VHOST
+++ config_parse_args config:get test-project NO_VHOST
+++ case "$2" in
+++ APP=test-project
+++ ENV_FILE=/home/dokku/test-project/ENV
+++ DOKKU_CONFIG_TYPE=app
+++ DOKKU_CONFIG_RESTART=true
+++ [[ app = \a\p\p ]]
+++ [[ -z test-project ]]
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+++ [[ -z NO_VHOST ]]
+++ config_create /home/dokku/test-project/ENV
+++ local ENV_FILE=/home/dokku/test-project/ENV
+++ [[ -f /home/dokku/test-project/ENV ]]
+++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ KEY=NO_VHOST
+++ sed -e 's/^'\''//' -e 's/'\''$//'
+++ cut -d= -f2-
+++ grep '^export NO_VHOST='
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ local NO_VHOST=
++ local APP_VHOST_ENABLED=true
++ [[ '' == \1 ]]
++ [[ -f /home/dokku/test-project/nginx.conf ]]
++ [[ ! -f /home/dokku/test-project/VHOST ]]
++ echo true
+ [[ true == \f\a\l\s\e ]]
+ [[ ! -f /home/dokku/test-project/VHOST ]]
+ nginx_build_config test-project
+ local APP=test-project
+ local DOKKU_APP_LISTEN_PORT=
+ local DOKKU_APP_LISTEN_IP=
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ VHOST_PATH=/home/dokku/test-project/VHOST
+ URLS_PATH=/home/dokku/test-project/URLS
+ WILDCARD_SSL_PATH=/home/dokku/tls
+ APP_SSL_PATH=/home/dokku/test-project/tls
+ APP_NGINX_TEMPLATE=/home/dokku/test-project/nginx.conf.template
+ APP_NGINX_SSL_TEMPLATE=/home/dokku/test-project/nginx.ssl.conf.template
++ config_export global
++ local CONFIG_TYPE=global
++ local APP=
++ local ENV_FILE=/home/dokku//ENV
++ [[ global == \g\l\o\b\a\l ]]
++ ENV_FILE=/home/dokku/ENV
++ [[ ! -f /home/dokku/ENV ]]
++ [[ ! -s /home/dokku/ENV ]]
++ return 0
+ eval ''
++ config_export app test-project
++ local CONFIG_TYPE=app
++ local APP=test-project
++ local ENV_FILE=/home/dokku/test-project/ENV
++ [[ app == \g\l\o\b\a\l ]]
++ [[ ! -f /home/dokku/test-project/ENV ]]
++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ cut '-d ' -f2-
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ VARS='DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ awk '{print "export " $0}'
++ echo 'DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ return 0
+ eval 'export DOKKU_APP_RESTORE='\''1'\''
export DOKKU_NGINX_PORT='\''80'\'''
++ export DOKKU_APP_RESTORE=1
++ DOKKU_APP_RESTORE=1
++ export DOKKU_NGINX_PORT=80
++ DOKKU_NGINX_PORT=80
+ [[ ! -n '' ]]
+ [[ -z '' ]]
+ [[ -z '' ]]
+ shopt -s nullglob
+ for DOKKU_APP_IP_FILE in '$DOKKU_ROOT/$APP/IP.web.*'
+ DOKKU_APP_PORT_FILE=/home/dokku/test-project/PORT.web.1
+ DOKKU_APP_LISTENER_IP=172.17.0.3
+ DOKKU_APP_LISTENER_PORT=5000
+ DOKKU_APP_LISTENERS+=' '
+ DOKKU_APP_LISTENERS+=172.17.0.3:5000
+ DOKKU_APP_LISTENERS+=' '
+ shopt -u nullglob
+ DOKKU_APP_CIDS=($(get_app_container_ids $APP))
++ get_app_container_ids test-project
++ local APP=test-project
++ local CONTAINER_TYPE=
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
++ [[ -f /home/dokku/test-project/CONTAINER ]]
++ [[ -n '' ]]
++ CONTAINER_PATTERN='/home/dokku/test-project/CONTAINER.*'
++ shopt -s nullglob
++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
++ DOKKU_CIDS+=' '
++ DOKKU_CIDS+=1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
++ DOKKU_CIDS+=' '
++ shopt -u nullglob
++ echo 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e
+ for file in nginx.conf.template nginx.ssl.conf.template
+ docker cp 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e:/app/nginx.conf.template /home/dokku/test-project/
+ true
+ for file in nginx.conf.template nginx.ssl.conf.template
+ docker cp 1497fc838115537a23b98435ffeab83563728f232360495ed458c7d279a4b22e:/app/nginx.ssl.conf.template /home/dokku/test-project/
+ true
+ [[ -f /home/dokku/test-project/nginx.conf.template ]]
++ mktemp -t nginx.conf.XXXXXX
+ NGINX_CONF=/tmp/nginx.conf.Vk3LEl
+ SCHEME=http
++ is_app_vhost_enabled test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
+++ config_get test-project NO_VHOST
+++ [[ test-project == \c\o\n\f\i\g\:\g\e\t ]]
+++ set -- config:get test-project NO_VHOST
+++ config_parse_args config:get test-project NO_VHOST
+++ case "$2" in
+++ APP=test-project
+++ ENV_FILE=/home/dokku/test-project/ENV
+++ DOKKU_CONFIG_TYPE=app
+++ DOKKU_CONFIG_RESTART=true
+++ [[ app = \a\p\p ]]
+++ [[ -z test-project ]]
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+++ [[ -z NO_VHOST ]]
+++ config_create /home/dokku/test-project/ENV
+++ local ENV_FILE=/home/dokku/test-project/ENV
+++ [[ -f /home/dokku/test-project/ENV ]]
+++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ KEY=NO_VHOST
+++ sed -e 's/^'\''//' -e 's/'\''$//'
+++ cut -d= -f2-
+++ grep '^export NO_VHOST='
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ local NO_VHOST=
++ local APP_VHOST_ENABLED=true
++ [[ '' == \1 ]]
++ [[ -f /home/dokku/test-project/nginx.conf ]]
++ [[ ! -f /home/dokku/test-project/VHOST ]]
++ echo true
+ [[ true == \f\a\l\s\e ]]
+ [[ -z 80 ]]
+ NGINX_PORT=80
++ get_app_domains test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
++ [[ -f /home/dokku/test-project/VHOST ]]
++ cat /home/dokku/test-project/VHOST
+ NONSSL_VHOSTS=test-project.dev.bonkerstech.com
++ is_ssl_enabled test-project
++ local APP=test-project
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
++ APP_SSL_PATH=/home/dokku/test-project/tls
++ WILDCARD_SSL_PATH=/home/dokku/tls
++ [[ -e /home/dokku/test-project/tls/server.crt ]]
++ [[ -e /home/dokku/tls/server.crt ]]
++ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z '' ]]
+ NGINX_TEMPLATE=/var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.template
+ [[ -n test-project.dev.bonkerstech.com ]]
++ tr '\n' ' '
++ echo test-project.dev.bonkerstech.com
+ NOSSL_SERVER_NAME='test-project.dev.bonkerstech.com '
+ xargs -i echo '-----> Configuring {}...(using /var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.template)'
-----> Configuring test-project.dev.bonkerstech.com...(using /var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.template)
+ eval 'cat <<< "server {
listen [::]:$NGINX_PORT;
listen $NGINX_PORT;
server_name $NOSSL_SERVER_NAME;
access_log /var/log/nginx/${APP}-access.log;
error_log /var/log/nginx/${APP}-error.log;
location / {
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
gzip_vary on;
gzip_comp_level 6;
proxy_pass http://$APP;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host \$http_host;
proxy_set_header X-Forwarded-Proto \$scheme;
proxy_set_header X-Forwarded-For \$remote_addr;
proxy_set_header X-Forwarded-Port \$server_port;
proxy_set_header X-Request-Start \$msec;
}
include $DOKKU_ROOT/$APP/nginx.conf.d/*.conf;
}" >> /tmp/nginx.conf.Vk3LEl'
++ cat
++ is_app_vhost_enabled test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
+++ config_get test-project NO_VHOST
+++ [[ test-project == \c\o\n\f\i\g\:\g\e\t ]]
+++ set -- config:get test-project NO_VHOST
+++ config_parse_args config:get test-project NO_VHOST
+++ case "$2" in
+++ APP=test-project
+++ ENV_FILE=/home/dokku/test-project/ENV
+++ DOKKU_CONFIG_TYPE=app
+++ DOKKU_CONFIG_RESTART=true
+++ [[ app = \a\p\p ]]
+++ [[ -z test-project ]]
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+++ [[ -z NO_VHOST ]]
+++ config_create /home/dokku/test-project/ENV
+++ local ENV_FILE=/home/dokku/test-project/ENV
+++ [[ -f /home/dokku/test-project/ENV ]]
+++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ KEY=NO_VHOST
+++ sed -e 's/^'\''//' -e 's/'\''$//'
+++ cut -d= -f2-
+++ grep '^export NO_VHOST='
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ local NO_VHOST=
++ local APP_VHOST_ENABLED=true
++ [[ '' == \1 ]]
++ [[ -f /home/dokku/test-project/nginx.conf ]]
++ [[ ! -f /home/dokku/test-project/VHOST ]]
++ echo true
+ [[ true == \f\a\l\s\e ]]
+ [[ -z test-project.dev.bonkerstech.com ]]
+ [[ -n '' ]]
+ [[ -n 172.17.0.3:5000 ]]
+ echo 'upstream test-project { '
+ for listener in '$DOKKU_APP_LISTENERS'
+ echo ' server 172.17.0.3:5000;'
+ echo '}'
+ is_deployed test-project
+ local APP=test-project
+ [[ -f /home/dokku/test-project/CONTAINER ]]
++ ls /home/dokku/test-project/CONTAINER.web.1
++ echo 0
+ [[ 0 -eq 0 ]]
+ return 0
+ dokku_log_info1 'Creating http nginx.conf'
+ echo '-----> Creating http nginx.conf'
-----> Creating http nginx.conf
+ mv /tmp/nginx.conf.Vk3LEl /home/dokku/test-project/nginx.conf
+ is_deployed test-project
+ local APP=test-project
+ [[ -f /home/dokku/test-project/CONTAINER ]]
++ ls /home/dokku/test-project/CONTAINER.web.1
++ echo 0
+ [[ 0 -eq 0 ]]
+ return 0
+ dokku_log_info1 'Running nginx-pre-reload'
+ echo '-----> Running nginx-pre-reload'
-----> Running nginx-pre-reload
+ plugn trigger nginx-pre-reload test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ dokku_log_verbose 'Reloading nginx'
+ echo ' Reloading nginx'
Reloading nginx
+ validate_nginx
+ set +e
+ sudo /usr/sbin/nginx -t
+ exit_code=0
+ set -e
+ [[ 0 -ne 0 ]]
+ restart_nginx
+ case "$DOKKU_DISTRO" in
+ sudo /etc/init.d/nginx reload
++ is_app_vhost_enabled test-project
++ local APP=test-project
++ local APP_VHOST_FILE=/home/dokku/test-project/VHOST
++ verify_app_name test-project
++ local APP=test-project
++ [[ ! -n test-project ]]
++ [[ ! test-project =~ ^[a-z].* ]]
++ [[ ! -d /home/dokku/test-project ]]
++ return 0
+++ config_get test-project NO_VHOST
+++ [[ test-project == \c\o\n\f\i\g\:\g\e\t ]]
+++ set -- config:get test-project NO_VHOST
+++ config_parse_args config:get test-project NO_VHOST
+++ case "$2" in
+++ APP=test-project
+++ ENV_FILE=/home/dokku/test-project/ENV
+++ DOKKU_CONFIG_TYPE=app
+++ DOKKU_CONFIG_RESTART=true
+++ [[ app = \a\p\p ]]
+++ [[ -z test-project ]]
+++ verify_app_name test-project
+++ local APP=test-project
+++ [[ ! -n test-project ]]
+++ [[ ! test-project =~ ^[a-z].* ]]
+++ [[ ! -d /home/dokku/test-project ]]
+++ return 0
+++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+++ [[ -z NO_VHOST ]]
+++ config_create /home/dokku/test-project/ENV
+++ local ENV_FILE=/home/dokku/test-project/ENV
+++ [[ -f /home/dokku/test-project/ENV ]]
+++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ KEY=NO_VHOST
+++ sed -e 's/^'\''//' -e 's/'\''$//'
+++ cut -d= -f2-
+++ grep '^export NO_VHOST='
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ local NO_VHOST=
++ local APP_VHOST_ENABLED=true
++ [[ '' == \1 ]]
++ [[ -f /home/dokku/test-project/nginx.conf ]]
++ [[ ! -f /home/dokku/test-project/VHOST ]]
++ echo true
+ [[ true == \t\r\u\e ]]
+ echo '# THIS FILE IS GENERATED BY DOKKU - DO NOT EDIT, YOUR CHANGES WILL BE OVERWRITTEN'
+ xargs -i echo 'https://{}'
+ xargs -i echo 'http://{}'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/ps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ APP=test-project
+ dokku config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:set =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:set =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_set config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ [[ config:set == \c\o\n\f\i\g\:\s\e\t ]]
+ config_parse_args config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_RESTART=false
+ DOKKU_CONFIG_TYPE=app
+ set -- config:set test-project DOKKU_APP_RESTORE=1
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=false
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ --no-restart = \-\-\n\o\-\r\e\s\t\a\r\t ]]
+ set -- config:set test-project DOKKU_APP_RESTORE=1
+ [[ -z DOKKU_APP_RESTORE=1 ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ ENV_ADD=
++ cat /home/dokku/test-project/ENV
+ ENV_TEMP='export DOKKU_APP_RESTORE='\''1'\''
export DOKKU_NGINX_PORT='\''80'\'''
+ RESTART_APP=false
+ shift 2
+ for var in '"$@"'
+ [[ DOKKU_APP_RESTORE=1 != *\=* ]]
+ for var in '"$@"'
++ cut -d= -f1
++ echo DOKKU_APP_RESTORE=1
+ KEY=DOKKU_APP_RESTORE
++ cut -d= -f2-
++ echo DOKKU_APP_RESTORE=1
+ VALUE=1
+ [[ DOKKU_APP_RESTORE =~ [a-zA-Z_][a-zA-Z0-9_]* ]]
+ RESTART_APP=true
++ sed '/^export DOKKU_APP_RESTORE=/ d'
++ echo 'export DOKKU_APP_RESTORE='\''1'\''
export DOKKU_NGINX_PORT='\''80'\'''
+ ENV_TEMP='export DOKKU_NGINX_PORT='\''80'\'''
+ ENV_TEMP='export DOKKU_NGINX_PORT='\''80'\''
export DOKKU_APP_RESTORE='\''1'\'''
++ sed '/^DOKKU_APP_RESTORE=/ d'
++ echo -e ''
+ ENV_ADD=
+ ENV_ADD='$
DOKKU_APP_RESTORE=1'
++ tail -n +2
++ echo '$
DOKKU_APP_RESTORE=1'
+ ENV_ADD=DOKKU_APP_RESTORE=1
+ [[ -n true ]]
+ dokku_log_info1 'Setting config vars'
+ echo '-----> Setting config vars'
-----> Setting config vars
+ config_styled_hash DOKKU_APP_RESTORE=1 ' '
+ local vars=DOKKU_APP_RESTORE=1
+ local 'prefix= '
+ local longest=
+ read -r word
++ cut -d= -f1
++ echo DOKKU_APP_RESTORE=1
+ KEY=DOKKU_APP_RESTORE
+ [[ 17 -gt 0 ]]
+ longest=DOKKU_APP_RESTORE
+ read -r word
+ read -r word
++ cut -d= -f1
++ echo DOKKU_APP_RESTORE=1
+ KEY=DOKKU_APP_RESTORE
++ sed -e 's/^'\''//' -e 's/'\''$//' -e 's/$$//g'
++ cut -d= -f2-
++ echo DOKKU_APP_RESTORE=1
+ VALUE=1
+ num_zeros=0
+ zeros=' '
+ [[ 0 -gt 0 ]]
+ echo ' DOKKU_APP_RESTORE: 1'
DOKKU_APP_RESTORE: 1
+ read -r word
+ config_write 'export DOKKU_NGINX_PORT='\''80'\''
export DOKKU_APP_RESTORE='\''1'\'''
+ local 'ENV_TEMP=export DOKKU_NGINX_PORT='\''80'\''
export DOKKU_APP_RESTORE='\''1'\'''
+ local ENV_FILE_TEMP=/home/dokku/test-project/ENV.tmp
+ sort
+ sed '/^$/d'
+ echo 'export DOKKU_NGINX_PORT='\''80'\''
export DOKKU_APP_RESTORE='\''1'\'''
+ cmp -s /home/dokku/test-project/ENV /home/dokku/test-project/ENV.tmp
+ rm -f /home/dokku/test-project/ENV.tmp
+ plugn trigger post-config-update test-project set DOKKU_APP_RESTORE=1
+ [[ false == \t\r\u\e ]]
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands config:set --no-restart test-project DOKKU_APP_RESTORE=1
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ [[ -n 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69 ]]
+ [[ -z '' ]]
++ dokku config:get test-project DOKKU_WAIT_TO_RETIRE
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get test-project DOKKU_WAIT_TO_RETIRE
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get test-project DOKKU_WAIT_TO_RETIRE
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get test-project DOKKU_WAIT_TO_RETIRE
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get test-project DOKKU_WAIT_TO_RETIRE
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get test-project DOKKU_WAIT_TO_RETIRE
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get test-project DOKKU_WAIT_TO_RETIRE
+ case "$2" in
+ APP=test-project
+ ENV_FILE=/home/dokku/test-project/ENV
+ DOKKU_CONFIG_TYPE=app
+ DOKKU_CONFIG_RESTART=true
+ [[ app = \a\p\p ]]
+ [[ -z test-project ]]
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_WAIT_TO_RETIRE ]]
+ config_create /home/dokku/test-project/ENV
+ local ENV_FILE=/home/dokku/test-project/ENV
+ [[ -f /home/dokku/test-project/ENV ]]
+ [[ ! -s /home/dokku/test-project/ENV ]]
+ KEY=DOKKU_WAIT_TO_RETIRE
+ sed -e 's/^'\''//' -e 's/'\''$//'
+ cut -d= -f2-
+ grep '^export DOKKU_WAIT_TO_RETIRE='
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
++ true
+ DOKKU_APP_DOKKU_WAIT_TO_RETIRE=
++ dokku config:get --global DOKKU_WAIT_TO_RETIRE
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args config:get --global DOKKU_WAIT_TO_RETIRE
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ config:get =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ config:get =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth config:get --global DOKKU_WAIT_TO_RETIRE
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default config:get --global DOKKU_WAIT_TO_RETIRE
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ config_get config:get --global DOKKU_WAIT_TO_RETIRE
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]]
+ config_parse_args config:get --global DOKKU_WAIT_TO_RETIRE
+ case "$2" in
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ APP=--global
+ ENV_FILE=/home/dokku/ENV
+ DOKKU_CONFIG_TYPE=global
+ DOKKU_CONFIG_RESTART=false
+ [[ global = \a\p\p ]]
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
+ [[ -z DOKKU_WAIT_TO_RETIRE ]]
+ config_create /home/dokku/ENV
+ local ENV_FILE=/home/dokku/ENV
+ [[ -f /home/dokku/ENV ]]
+ [[ ! -s /home/dokku/ENV ]]
+ return 0
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands config:get --global DOKKU_WAIT_TO_RETIRE
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands config:get --global DOKKU_WAIT_TO_RETIRE
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ DOKKU_GLOBAL_DOKKU_WAIT_TO_RETIRE=
+ DOKKU_WAIT_TO_RETIRE=
+ WAIT=60
+ dokku_log_info1 'Shutting down old containers in 60 seconds'
+ echo '-----> Shutting down old containers in 60 seconds'
-----> Shutting down old containers in 60 seconds
+ for oldid in '$oldids'
+ dokku_log_info2 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+ echo '=====> 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69'
=====> 9b94d23a6ec0a519c034d7fb84c2ba23bfd67194663bb06de310d55000282e69
+ disown -a
+ sleep 0.1
+ exec
+ dokku_log_info2 'Application deployed:'
+ echo '=====> Application deployed:'
=====> Application deployed:
+ sed 's/^/ /'
+ dokku urls test-project
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ for f in '$DOKKU_ROOT/.dokkurc/*'
+ source /home/dokku/.dokkurc/DOKKU_TRACE
++ export DOKKU_TRACE=1
++ DOKKU_TRACE=1
+ [[ -n 1 ]]
+ set -x
+ parse_args urls test-project
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ urls =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
++ id -un
+ [[ dokku != \r\o\o\t ]]
+ [[ urls =~ plugin:.* ]]
+ [[ -n '' ]]
+ dokku_auth urls test-project
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default urls test-project
+ return 0
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands urls test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ source /var/lib/dokku/plugins/available/nginx-vhosts/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/certs/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ source /var/lib/dokku/plugins/available/domains/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ case "$1" in
+ [[ -z test-project ]]
+ APP=test-project
+ verify_app_name test-project
+ local APP=test-project
+ [[ ! -n test-project ]]
+ [[ ! test-project =~ ^[a-z].* ]]
+ [[ ! -d /home/dokku/test-project ]]
+ return 0
++ config_export app test-project
++ local CONFIG_TYPE=app
++ local APP=test-project
++ local ENV_FILE=/home/dokku/test-project/ENV
++ [[ app == \g\l\o\b\a\l ]]
++ [[ ! -f /home/dokku/test-project/ENV ]]
++ [[ ! -s /home/dokku/test-project/ENV ]]
+++ cut '-d ' -f2-
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/test-project/ENV
++ VARS='DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ awk '{print "export " $0}'
++ echo 'DOKKU_APP_RESTORE='\''1'\''
DOKKU_NGINX_PORT='\''80'\'''
++ return 0
+ eval 'export DOKKU_APP_RESTORE='\''1'\''
export DOKKU_NGINX_PORT='\''80'\'''
++ export DOKKU_APP_RESTORE=1
++ DOKKU_APP_RESTORE=1
++ export DOKKU_NGINX_PORT=80
++ DOKKU_NGINX_PORT=80
+ [[ -s /home/dokku/test-project/URLS ]]
+ case "$1" in
+ grep '^http' /home/dokku/test-project/URLS
http://test-project.dev.bonkerstech.com
+ exit 0
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/backup/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands urls test-project
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/apps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands urls test-project
++ dirname /var/lib/dokku/plugins/enabled/logs/commands
+ source /var/lib/dokku/plugins/enabled/logs/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands urls test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ echo
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands ps:restart test-project
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment