Last active
March 27, 2017 12:12
-
-
Save ebeigarts/864bcddee4b1290d2b1a2dfbb1653892 to your computer and use it in GitHub Desktop.
Revisions
-
ebeigarts revised this gist
Mar 27, 2017 . 2 changed files with 14 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ for APP in `dokku apps | grep -v '=====> My Apps'`; do ID=$(cat /home/dokku/$APP/CONTAINER.web.1) IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $ID) if [ ! -z $IP ]; then echo " ---> $APP: $IP" echo $IP > /home/dokku/$APP/IP.web.1 dokku nginx:build-config $APP fi done for APP in `dokku ls | grep stopped | awk '{ print $1 }' | uniq`; do echo $APP dokku ps:restart $APP done -
ebeigarts revised this gist
Mar 27, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,2 @@ for APP in `dokku apps | grep -v '=====> My Apps'`; do ID=$(cat /home/dokku/$APP/CONTAINER.web.1); IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $ID); if [ ! -z $IP ]; then echo " ---> $APP: $IP"; echo $IP > /home/dokku/$APP/IP.web.1; dokku nginx:build-config $APP; fi; done for APP in `dokku ls | grep stopped | awk '{ print $1 }' | uniq`; do echo $APP; dokku ps:restart $APP; done -
ebeigarts created this gist
Mar 27, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ for APP in `dokku apps | grep -v '=====> My Apps'`; do ID=$(cat /home/dokku/$APP/CONTAINER.web.1); IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $ID); if [ ! -z $IP ]; then echo " ---> $APP: $IP"; echo $IP > /home/dokku/$APP/IP.web.1; dokku nginx:build-config $APP; fi; done