Skip to content

Commit c877589

Browse files
zodernunknown
authored andcommitted
Add more logging to meteor-deploy-check
1 parent a9277fc commit c877589

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/meteor/assets/meteor-deploy-check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ DEPLOY_CHECK_URL=$CONTAINER_IP<%= `:${deployCheckPort}` %>
1010

1111
cd $APP_PATH
1212

13-
revert_app (){
13+
revert_app () {
14+
echo "=> Container status:"
15+
sudo docker inspect $APPNAME --format "restarted: {{.RestartCount}} times {{json .NetworkSettings}} {{json .State}}"
16+
echo "=> Logs:"
1417
sudo docker logs --tail=100 $APPNAME 1>&2
1518

1619
if sudo docker image inspect $IMAGE:previous >/dev/null 2>&1; then
@@ -52,6 +55,7 @@ while [[ true ]]; do
5255
CONTAINER_IP=$(docker inspect $APPNAME --format "{{.NetworkSettings.IPAddress}}")
5356

5457
if [[ -z $CONTAINER_IP ]]; then
58+
echo "Container has no IP Address, likely from it restarting."
5559
noIPCount=$((noIPCount+1))
5660

5761
if [ "$noIPCount" "==" "$MAX_NO_IP_COUNT" ]; then

0 commit comments

Comments
 (0)