Skip to content

Maintenance Mode

adamboche edited this page Jan 24, 2017 · 3 revisions

I have added the capability to put the site into a "maintenance mode". This mode will take the whole site and all requests down, serving a static page with an error message that by default says we'll be back within 5 minutes. The purpose of this mode is to allow deployments without user-unfriendly downtime.

To put the site in maintenance mode: touch /var/www/voteview/static/maintenance

To take the site out of maintenance mode: rm /var/www/voteview/static/maintenance

NOTE: You do not need to restart anything--maintenance mode takes effect IMMEDIATELY.

The contents of the maintenance page are located at: /var/www/voteview/static/maintenance.html