[development] Put a site into maintenance-mode, but not for all...

Andrew Berry andrewberry at sentex.net
Tue Jan 6 14:36:05 UTC 2009


On 6-Jan-09, at 9:23 AM, Greg Knaddison wrote:

> On Tue, Jan 6, 2009 at 6:25 AM, Jens Reinemuth <jens at reinemuth.info>  
> wrote:
>> Hi @all...
>>
>> i try to figure out how to put a live website into the maintenance- 
>> mode,
>> but leave it fully accessible by a fixed IP-Range of developers so  
>> that
>> bugs can be fixed and tested in a fully running site...
>
> I've thought about this problem as well and created the Maintenance
> Helper module:

That's a neat idea. Project page for sure!

I could see it being useful for doing site updates. On many sites, the  
DB is mostly read-only unless you're logged in. I wonder if,  
especially for sites with the aggressive cache option set, if during  
maintenance all pages would be served from the page cache, so that the  
site never loads inconsistent data during an update.php run. Only if  
the page wasn't cached would a maintenance message appear.

Another solution is the secure_site module. I use it on development  
sites as my IP changes to much to be useful in an .htaccess. Also,  
many corporate clients are stuck behind a proxy, making it harder to  
whitelist IP's. You could probably theme the secure site login page to  
be more friendly to the general public.

--Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2672 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20090106/5dad1c48/attachment.bin 


More information about the development mailing list