mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

Restart the application after deploying it #832

Closed chrismytton closed 9 years ago

chrismytton commented 9 years ago

This uses passenger's tmp/restart.txt mechanism to restart popit at the end of the deploy. There is still a very brief bit of downtime because of this bit of code in deploy-vhost, but it's kept to an absolute minimum.

Fixes #659

dracos commented 9 years ago

If you fix https://github.com/mysociety/Non-Site-Specific/issues/351 then you could use mysociety update rather than mysociety deploy and there'd be no stop/start :)

chrismytton commented 9 years ago

@dracos Thanks, will investigate that at some point. For now the very brief bit of downtime isn't a massive problem :)

chrismytton commented 9 years ago

Closing this PR, it wasn't actually necessary in the end because deploying a vhost does and apache graceful, so passenger gets restarted as part of that.