Created
February 11, 2015 21:00
-
-
Save simonreed/291f086eb0fd7166aa86 to your computer and use it in GitHub Desktop.
dokku v0.3.14 --trace ps:restartall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@simonreed:~# dokku --trace ps:restartall | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args ps:restartall | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ ps:restartall =~ ^-.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands ps:restartall | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku//ENV | |
+ ENV_FILE_TEMP=/home/dokku//ENV.tmp | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/domains/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/domains/commands | |
+ source /var/lib/dokku/plugins/domains/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ RE_IPV4='([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}|' | |
+ 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-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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}' | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/git/commands ps:restartall | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/nginx-vhosts/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands | |
+ source /var/lib/dokku/plugins/nginx-vhosts/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/ps/commands ps:restartall | |
++ dirname /var/lib/dokku/plugins/ps/commands | |
+ source /var/lib/dokku/plugins/ps/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ shopt -s nullglob | |
+ for app in '$DOKKU_ROOT/*/CONTAINER' | |
+++ dirname /home/dokku/simonreed.co/CONTAINER | |
++ basename /home/dokku/simonreed.co | |
+ APP=simonreed.co | |
+ dokku ps:restart simonreed.co | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args ps:restart simonreed.co | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ ps:restart =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands ps:restart simonreed.co | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku/simonreed.co/ENV | |
+ ENV_FILE_TEMP=/home/dokku/simonreed.co/ENV.tmp | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/domains/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/domains/commands | |
+ source /var/lib/dokku/plugins/domains/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ RE_IPV4='([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}|' | |
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}){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}' | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/git/commands ps:restart simonreed.co | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/nginx-vhosts/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands | |
+ source /var/lib/dokku/plugins/nginx-vhosts/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/ps/commands ps:restart simonreed.co | |
++ dirname /var/lib/dokku/plugins/ps/commands | |
+ source /var/lib/dokku/plugins/ps/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ [[ -z simonreed.co ]] | |
+ verify_app_name simonreed.co | |
+ local APP=simonreed.co | |
+ [[ ! -d /home/dokku/simonreed.co ]] | |
+ return 0 | |
+ APP=simonreed.co | |
+ [[ -f /home/dokku/simonreed.co/CONTAINER ]] | |
+ CONTAINER_ID=2e5013ad43a407e201c5ecadc669a428bb0c8e6603357ac42e58cdb00d327b53 | |
+ [[ -z 2e5013ad43a407e201c5ecadc669a428bb0c8e6603357ac42e58cdb00d327b53 ]] | |
+ release_and_deploy simonreed.co | |
++ dirname /var/lib/dokku/plugins/ps/commands | |
+ source /var/lib/dokku/plugins/ps/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ local APP=simonreed.co | |
+ [[ -f /home/dokku/simonreed.co/CONTAINER ]] | |
+ dokku_log_info1 'Releasing simonreed.co ...' | |
+ echo '-----> Releasing simonreed.co ...' | |
-----> Releasing simonreed.co ... | |
+ dokku release simonreed.co | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args release simonreed.co | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ release =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ APP=simonreed.co | |
+ IMAGE=dokku/simonreed.co | |
+ pluginhook pre-release simonreed.co | |
+ [[ -f /home/dokku/ENV ]] | |
++ docker run -i -a stdin dokku/simonreed.co /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/00-global-env.sh' | |
+ id=9d8554df46f8c7b7b22f68d134d71f51da6340b7edad64bb8998acd156c08c5f | |
++ docker wait 9d8554df46f8c7b7b22f68d134d71f51da6340b7edad64bb8998acd156c08c5f | |
+ test 0 -eq 0 | |
+ docker commit 9d8554df46f8c7b7b22f68d134d71f51da6340b7edad64bb8998acd156c08c5f dokku/simonreed.co | |
+ [[ -f /home/dokku/simonreed.co/ENV ]] | |
++ docker run -i -a stdin dokku/simonreed.co /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/01-app-env.sh' | |
+ id=256edd15d54ce7ee90e0a74454ee323b5a595c11adb10221e47379e51f87c74f | |
++ docker wait 256edd15d54ce7ee90e0a74454ee323b5a595c11adb10221e47379e51f87c74f | |
+ test 0 -eq 0 | |
+ docker commit 256edd15d54ce7ee90e0a74454ee323b5a595c11adb10221e47379e51f87c74f dokku/simonreed.co | |
+ pluginhook post-release simonreed.co | |
+ dokku_log_info1 'Release complete!' | |
+ echo '-----> Release complete!' | |
-----> Release complete! | |
+ dokku_log_info1 'Deploying simonreed.co ...' | |
+ echo '-----> Deploying simonreed.co ...' | |
-----> Deploying simonreed.co ... | |
+ dokku deploy simonreed.co | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args deploy simonreed.co | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ deploy =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ APP=simonreed.co | |
+ IMAGE=dokku/simonreed.co | |
+ pluginhook pre-deploy simonreed.co | |
+ [[ -f /home/dokku/simonreed.co/CONTAINER ]] | |
+ oldid=2e5013ad43a407e201c5ecadc669a428bb0c8e6603357ac42e58cdb00d327b53 | |
++ pluginhook docker-args simonreed.co deploy | |
++ : | |
+ DOCKER_ARGS= | |
++ pluginhook docker-args-deploy simonreed.co | |
++ : | |
+ DOCKER_ARGS+= | |
++ pluginhook bind-external-ip simonreed.co | |
+ APP=simonreed.co | |
+ set +e | |
++ dokku config:get simonreed.co NO_VHOST | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get simonreed.co NO_VHOST | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ config:get =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ NO_VHOST =~ ^-.* ]] | |
+ 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 ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands config:get simonreed.co NO_VHOST | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku/simonreed.co/ENV | |
+ ENV_FILE_TEMP=/home/dokku/simonreed.co/ENV.tmp | |
+ case "$1" in | |
+ [[ -z simonreed.co ]] | |
+ verify_app_name simonreed.co | |
+ local APP=simonreed.co | |
+ [[ ! -d /home/dokku/simonreed.co ]] | |
+ return 0 | |
+ APP=simonreed.co | |
+ [[ -z NO_VHOST ]] | |
+ config_create | |
+ '[' -f /home/dokku/simonreed.co/ENV ']' | |
+ [[ ! -s /home/dokku/simonreed.co/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/simonreed.co/ENV | |
+ exit_code=1 | |
+ set -e | |
+ '[' 1 -eq 10 ']' | |
+ implemented=1 | |
+ '[' 1 -ne 0 ']' | |
+ exit 1 | |
+ NO_VHOST= | |
+ set -e | |
+ RE_IPV4='([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}|' | |
+ 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}: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f /home/dokku/VHOST ]] | |
+ GLOBAL_VHOST=simonreed.co | |
+ [[ -n '' ]] | |
+ [[ simonreed.co =~ ([0-9]{1,3}[\.]){3}[0-9]{1,3} ]] | |
+ [[ simonreed.co =~ ([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 simonreed.co ]] | |
+ [[ -f /home/dokku/simonreed.co/VHOST ]] | |
+ echo false | |
+ BIND_EXTERNAL=false | |
+ [[ false = \f\a\l\s\e ]] | |
+ port=5000 | |
++ docker run -d -e PORT=5000 dokku/simonreed.co /bin/bash -c '/start web' | |
+ id=4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393 | |
++ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393 | |
+ ipaddr=172.17.0.57 | |
+ echo 172.17.0.57 | |
+ trap kill_new INT TERM EXIT | |
+ dokku_log_info1 'Running pre-flight checks' | |
+ echo '-----> Running pre-flight checks' | |
-----> Running pre-flight checks | |
+ pluginhook check-deploy 4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393 simonreed.co 5000 172.17.0.57 | |
+ CONTAINERID=4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393 | |
+ APP=simonreed.co | |
+ PORT=5000 | |
+ HOSTNAME=172.17.0.57 | |
+ [[ -f /home/dokku/ENV ]] | |
+ source /home/dokku/ENV | |
++ export CURL_CONNECT_TIMEOUT=5 | |
++ CURL_CONNECT_TIMEOUT=5 | |
++ export CURL_TIMEOUT=30 | |
++ CURL_TIMEOUT=30 | |
+ [[ -f /home/dokku/simonreed.co/ENV ]] | |
+ source /home/dokku/simonreed.co/ENV | |
++ export DATABASE_URL=postgres://simonreed_production_user:[email protected]:5432/production | |
++ DATABASE_URL=postgres://simonreed_production_user:[email protected]:5432/production | |
++ export HTTP_AUTH_PASSWORD=password | |
++ HTTP_AUTH_PASSWORD=password | |
++ export HTTP_AUTH_USERNAME=tjc | |
++ HTTP_AUTH_USERNAME=tjc | |
+ FILENAME=/home/dokku/simonreed.co/CHECKS | |
+ WAIT=5 | |
+ [[ ! -f /home/dokku/simonreed.co/CHECKS ]] | |
+ echo ' check-deploy: /home/dokku/simonreed.co/CHECKS not found. attempting to retrieve it from container ...' | |
check-deploy: /home/dokku/simonreed.co/CHECKS not found. attempting to retrieve it from container ... | |
++ mktemp -d /tmp/CHECKS.XXXXX | |
+ TMPDIR=/tmp/CHECKS.Gkivx | |
+ docker cp 4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393:/app/CHECKS /tmp/CHECKS.Gkivx | |
+ true | |
+ [[ ! -s /tmp/CHECKS.Gkivx/CHECKS ]] | |
+ echo ' CHECKS file not found in container. skipping checks.' | |
CHECKS file not found in container. skipping checks. | |
+ rm -rf /tmp/CHECKS.Gkivx | |
+ exit 0 | |
+ echo 4dafade42aa719a4a116882fddf033af8ac831c42e27788576be7fffc4724393 | |
+ echo 5000 | |
+ echo http://simonreed.co:5000 | |
+ dokku_log_info1 'Running post-deploy' | |
+ echo '-----> Running post-deploy' | |
-----> Running post-deploy | |
+ pluginhook post-deploy simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/nginx-vhosts/post-deploy | |
+ source /var/lib/dokku/plugins/nginx-vhosts/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ APP=simonreed.co | |
+ PORT=5000 | |
+ IP=172.17.0.57 | |
+ set +e | |
++ dokku config:get simonreed.co NO_VHOST | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get simonreed.co NO_VHOST | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ config:get =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ NO_VHOST =~ ^-.* ]] | |
+ 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 ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands config:get simonreed.co NO_VHOST | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands config:get simonreed.co NO_VHOST | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku/simonreed.co/ENV | |
+ ENV_FILE_TEMP=/home/dokku/simonreed.co/ENV.tmp | |
+ case "$1" in | |
+ [[ -z simonreed.co ]] | |
+ verify_app_name simonreed.co | |
+ local APP=simonreed.co | |
+ [[ ! -d /home/dokku/simonreed.co ]] | |
+ return 0 | |
+ APP=simonreed.co | |
+ [[ -z NO_VHOST ]] | |
+ config_create | |
+ '[' -f /home/dokku/simonreed.co/ENV ']' | |
+ [[ ! -s /home/dokku/simonreed.co/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/simonreed.co/ENV | |
+ exit_code=1 | |
+ set -e | |
+ '[' 1 -eq 10 ']' | |
+ implemented=1 | |
+ '[' 1 -ne 0 ']' | |
+ exit 1 | |
+ NO_VHOST= | |
+ set -e | |
+ [[ -n '' ]] | |
+ [[ ! -f /home/dokku/simonreed.co/VHOST ]] | |
+ dokku nginx:build-config simonreed.co 5000 172.17.0.57 | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args nginx:build-config simonreed.co 5000 172.17.0.57 | |
+ 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 | |
+ for arg in '"$@"' | |
+ [[ nginx:build-config =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ 5000 =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ 172.17.0.57 =~ ^-.* ]] | |
+ 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 ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku/simonreed.co/ENV | |
+ ENV_FILE_TEMP=/home/dokku/simonreed.co/ENV.tmp | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/domains/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/domains/commands | |
+ source /var/lib/dokku/plugins/domains/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ RE_IPV4='([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}|' | |
+ 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}:|([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]{1,3}' | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/git/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/nginx-vhosts/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands | |
+ source /var/lib/dokku/plugins/nginx-vhosts/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ APP=simonreed.co | |
+ DOKKU_APP_LISTEN_PORT=5000 | |
+ DOKKU_APP_LISTEN_IP=172.17.0.57 | |
+ VHOST_PATH=/home/dokku/simonreed.co/VHOST | |
+ WILDCARD_SSL=/home/dokku/tls | |
+ SSL=/home/dokku/simonreed.co/tls | |
+ [[ -z 5000 ]] | |
+ [[ -z 172.17.0.57 ]] | |
+ [[ -f /home/dokku/ENV ]] | |
+ source /home/dokku/ENV | |
++ export CURL_CONNECT_TIMEOUT=5 | |
++ CURL_CONNECT_TIMEOUT=5 | |
++ export CURL_TIMEOUT=30 | |
++ CURL_TIMEOUT=30 | |
+ [[ -f /home/dokku/simonreed.co/ENV ]] | |
+ source /home/dokku/simonreed.co/ENV | |
++ export DATABASE_URL=postgres://simonreed_production_user:[email protected]:5432/production | |
++ DATABASE_URL=postgres://simonreed_production_user:[email protected]:5432/production | |
++ export HTTP_AUTH_PASSWORD=password | |
++ HTTP_AUTH_PASSWORD=password | |
++ export HTTP_AUTH_USERNAME=tjc | |
++ HTTP_AUTH_USERNAME=tjc | |
+ [[ ! -n '' ]] | |
+ [[ -f /home/dokku/simonreed.co/VHOST ]] | |
++ cat /home/dokku/simonreed.co/VHOST | |
+ NONSSL_VHOSTS='simonreed.co | |
.*.simonreed.co' | |
+ [[ -e /home/dokku/simonreed.co/tls/server.crt ]] | |
+ [[ -e /home/dokku/tls/server.crt ]] | |
+ [[ -e /home/dokku/tls/server.key ]] | |
+ SSL_INUSE=/home/dokku/tls | |
+ SSL_DIRECTIVES= | |
+ NGINX_CONF=/var/lib/dokku/plugins/nginx-vhosts/templates/nginx.conf | |
+ SCHEME=http | |
+ [[ -n /home/dokku/tls ]] | |
+ NGINX_CONF=/var/lib/dokku/plugins/nginx-vhosts/templates/nginx.ssl.conf | |
+ SCHEME=https | |
++ grep CN= | |
++ tr / '\n' | |
++ cut -c4- | |
++ openssl x509 -in /home/dokku/tls/server.crt -noout -subject | |
+ SSL_HOSTNAME='*.simonreed.co' | |
++ sed 's/\*/\.\*/g' | |
++ sed 's|\.|\\.|g' | |
++ echo '*.simonreed.co' | |
+ SSL_HOSTNAME='.*\.simonreed\.com' | |
++ egrep '^.*\.simonreed\.com$' /home/dokku/simonreed.co/VHOST | |
+ [[ -z .*.simonreed.co ]] | |
++ grep --after-context=1 '509v3 Subject Alternative Name:' | |
++ tail -n 1 | |
++ sed -e 's/[[:space:]]*DNS://g' | |
++ openssl x509 -in /home/dokku/tls/server.crt -noout -text | |
++ tr , '\n' | |
+ SSL_HOSTNAME_ALT='*.simonreed.co | |
simonreed.co' | |
++ sed 's/\*/\.\*/g' | |
++ sed 's|\.|\\.|g' | |
++ echo '*.simonreed.co | |
simonreed.co' | |
+ SSL_HOSTNAME_ALT='.*\.simonreed\.com | |
simonreed\.com' | |
++ egrep '^.*\.simonreed\.com | |
simonreed\.com$' /home/dokku/simonreed.co/VHOST | |
+ [[ -z simonreed.co | |
.*.simonreed.co ]] | |
++ egrep '^.*\.simonreed\.com$|^.*\.simonreed\.com | |
simonreed\.com$' /home/dokku/simonreed.co/VHOST | |
+ SSL_VHOSTS='simonreed.co | |
.*.simonreed.co' | |
++ egrep -v '^.*\.simonreed\.com$|^.*\.simonreed\.com | |
simonreed\.com$' /home/dokku/simonreed.co/VHOST | |
++ exit 0 | |
+ NONSSL_VHOSTS= | |
+ read line | |
+ dokku_log_info1 'Configuring SSL for simonreed.co...' | |
+ echo '-----> Configuring SSL for simonreed.co...' | |
-----> Configuring SSL for simonreed.co... | |
+ SSL_SERVER_NAME=simonreed.co | |
+ eval 'cat <<< "server { | |
listen [::]:80; | |
listen 80; | |
server_name $NOSSL_SERVER_NAME; | |
return 301 https://$SSL_SERVER_NAME\$request_uri; | |
} | |
server { | |
listen [::]:443 ssl spdy; | |
listen 443 ssl spdy; | |
server_name $SSL_SERVER_NAME; | |
$SSL_DIRECTIVES | |
keepalive_timeout 70; | |
add_header Alternate-Protocol 443:npn-spdy/2; | |
location / { | |
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; | |
}" >> /home/dokku/simonreed.co/nginx.conf' | |
++ cat | |
+ read line | |
+ dokku_log_info1 'Configuring SSL for .*.simonreed.co...' | |
+ echo '-----> Configuring SSL for .*.simonreed.co...' | |
-----> Configuring SSL for .*.simonreed.co... | |
+ SSL_SERVER_NAME='.*.simonreed.co' | |
+ eval 'cat <<< "server { | |
listen [::]:80; | |
listen 80; | |
server_name $NOSSL_SERVER_NAME; | |
return 301 https://$SSL_SERVER_NAME\$request_uri; | |
} | |
server { | |
listen [::]:443 ssl spdy; | |
listen 443 ssl spdy; | |
server_name $SSL_SERVER_NAME; | |
$SSL_DIRECTIVES | |
keepalive_timeout 70; | |
add_header Alternate-Protocol 443:npn-spdy/2; | |
location / { | |
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; | |
}" >> /home/dokku/simonreed.co/nginx.conf' | |
++ cat | |
+ read line | |
+ APP_NGINX_TEMPLATE=/home/dokku/simonreed.co/nginx.conf.template | |
+ [[ -f /home/dokku/simonreed.co/nginx.conf.template ]] | |
+ xargs -i echo '-----> Configuring {}...' | |
-----> Configuring simonreed.co... | |
-----> Configuring .*.simonreed.co... | |
++ tr '\n' ' ' | |
++ echo simonreed.co '.*.simonreed.co' | |
+ NOSSL_SERVER_NAME='simonreed.co .*.simonreed.co ' | |
+ [[ -n 5000 ]] | |
+ [[ -n 172.17.0.57 ]] | |
+ dokku_log_info1 'Creating https nginx.conf' | |
+ echo '-----> Creating https nginx.conf' | |
-----> Creating https nginx.conf | |
+ echo 'upstream simonreed.co { server 172.17.0.57:5000; }' | |
+ eval 'cat <<< "server { | |
listen [::]:80; | |
listen 80; | |
server_name $NOSSL_SERVER_NAME; | |
return 301 https://$SSL_SERVER_NAME\$request_uri; | |
} | |
server { | |
listen [::]:443 ssl spdy; | |
listen 443 ssl spdy; | |
server_name $SSL_SERVER_NAME; | |
$SSL_DIRECTIVES | |
keepalive_timeout 70; | |
add_header Alternate-Protocol 443:npn-spdy/2; | |
location / { | |
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; | |
}" >> /home/dokku/simonreed.co/nginx.conf' | |
++ cat | |
+ dokku_log_info1 'Running nginx-pre-reload' | |
+ echo '-----> Running nginx-pre-reload' | |
-----> Running nginx-pre-reload | |
+ pluginhook nginx-pre-reload simonreed.co 5000 172.17.0.57 | |
+ echo ' Reloading nginx' | |
Reloading nginx | |
+ restart_nginx | |
+ case "$DOKKU_DISTRO" in | |
+ sudo /etc/init.d/nginx reload | |
+ exit_code=0 | |
+ set -e | |
+ '[' 0 -eq 10 ']' | |
+ implemented=1 | |
+ '[' 0 -ne 0 ']' | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/ps/commands nginx:build-config simonreed.co 5000 172.17.0.57 | |
++ dirname /var/lib/dokku/plugins/ps/commands | |
+ source /var/lib/dokku/plugins/ps/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ '[' 1 -eq 0 ']' | |
+ trap - INT TERM EXIT | |
+ [[ -n 2e5013ad43a407e201c5ecadc669a428bb0c8e6603357ac42e58cdb00d327b53 ]] | |
+ WAIT=60 | |
+ dokku_log_info1 'Shutting down old container in 60 seconds' | |
+ echo '-----> Shutting down old container in 60 seconds' | |
-----> Shutting down old container in 60 seconds | |
+ disown -a | |
+ sleep 0.1 | |
+ exec | |
+ dokku_log_info2 'Application deployed:' | |
+ echo '=====> Application deployed:' | |
=====> Application deployed: | |
+ sed 's/^/ /' | |
+ dokku urls simonreed.co | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args urls simonreed.co | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ urls =~ ^-.* ]] | |
+ for arg in '"$@"' | |
+ [[ simonreed.co =~ ^-.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/00_dokku-standard/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/00_dokku-standard/commands | |
+ source /var/lib/dokku/plugins/00_dokku-standard/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ [[ -z simonreed.co ]] | |
+ verify_app_name simonreed.co | |
+ local APP=simonreed.co | |
+ [[ ! -d /home/dokku/simonreed.co ]] | |
+ return 0 | |
+ APP=simonreed.co | |
+ SCHEME=http | |
+ SSL=/home/dokku/simonreed.co/tls | |
+ WILDCARD_SSL=/home/dokku/tls | |
+ [[ -e /home/dokku/simonreed.co/tls/server.crt ]] | |
+ [[ -e /home/dokku/tls/server.crt ]] | |
+ [[ -e /home/dokku/tls/server.key ]] | |
+ SCHEME=https | |
+ [[ -f /home/dokku/simonreed.co/VHOST ]] | |
+ case "$1" in | |
+ for vhost in '$(< "$DOKKU_ROOT/$APP/VHOST")' | |
+ echo https://simonreed.co | |
+ for vhost in '$(< "$DOKKU_ROOT/$APP/VHOST")' | |
+ echo 'https://.*.simonreed.co' | |
https://simonreed.co | |
https://.*.simonreed.co | |
+ exit_code=0 | |
+ set -e | |
+ '[' 0 -eq 10 ']' | |
+ implemented=1 | |
+ '[' 0 -ne 0 ']' | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/apps/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/apps/commands | |
+ source /var/lib/dokku/plugins/apps/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/backup/commands urls simonreed.co | |
+ CURRENT_BACKUP_VERSION=1 | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/config/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/config/commands | |
+ source /var/lib/dokku/plugins/config/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ ENV_FILE=/home/dokku/simonreed.co/ENV | |
+ ENV_FILE_TEMP=/home/dokku/simonreed.co/ENV.tmp | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/domains/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/domains/commands | |
+ source /var/lib/dokku/plugins/domains/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ RE_IPV4='([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}|' | |
+ 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]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 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/git/commands urls simonreed.co | |
+ case "$1" in | |
+ exit 10 | |
+ exit_code=10 | |
+ set -e | |
+ '[' 10 -eq 10 ']' | |
+ continue | |
+ for script in '$PLUGIN_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/nginx-vhosts/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/nginx-vhosts/commands | |
+ source /var/lib/dokku/plugins/nginx-vhosts/../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_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/ps/commands urls simonreed.co | |
++ dirname /var/lib/dokku/plugins/ps/commands | |
+ source /var/lib/dokku/plugins/ps/../common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ exit 10 | |
+ 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 ']' | |
+ '[' 1 -eq 0 ']' | |
+ exit_code=0 | |
+ set -e | |
+ '[' 0 -eq 10 ']' | |
+ implemented=1 | |
+ '[' 0 -ne 0 ']' | |
+ '[' 1 -eq 0 ']' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment