Merge pull request #562 from assaf/zero-downtime

Zero down-time deploy and server checks
This commit is contained in:
Jeff Lindsay
2014-08-18 21:08:09 -05:00
3 changed files with 100 additions and 5 deletions

View File

@@ -84,6 +84,8 @@ EOF
echo "http://$hostname" > "$DOKKU_ROOT/$APP/URL"
fi
pluginhook nginx-pre-reload $APP
echo "-----> Running nginx-pre-reload"
pluginhook nginx-pre-reload $APP $PORT
echo " Reloading nginx"
sudo /etc/init.d/nginx reload > /dev/null
fi