Here’s a quick and dirty Maintenance Mode. If you need to take the site
down for any length of time (to back up the database, for example) this
lets you block access to the site without needing to bring the site down
or clear out the Mason cache. And it’s as simple to unblock the site, too.
When the new code is in place, you can place the site into maintenance
mode simply by creating a file called “.maintenance” in the root of the
and taking it out of maintenance mode is as simple as removing the file:
The effect is instantaneous in both cases.
See the wiki page for more details:
== The statements and opinions expressed here are my own and do not ==
== necessarily represent those of Oracle Corporation. ==