[Setup] How to put a Plone site in read-only mode for the duration of a migration ?

Rene Pijlman rene at lab.applinet.nl
Sat Dec 3 12:20:45 UTC 2005


Stefan H. Holek:
>Plone cannot be put in "read-only" mode. You could mount the ZODB  
>read-only, but then you can obviously not perform a migration...
>
>As you will want to migrate a *copy* of your site anyway, downtime is  
>not an issue.

I guess he wants to make his production instance read-only,
while he's migrating a copy. That's what I tried as well.

Unfortunately, Mounting Zope in read-only mode and changing the
file access permissions didn't work (Plone refused to start when
Data.fs is read-only).

What I did was disable my CMS-skin by changing an Apache
rewriterule to rewrite every request to a "cms is down for
maitenance" page, and keeping only the public skin up and
running. In that way editors were unable to login and make
changes, while my regular site was still available (my public
skin is view-only).

-- 
Rene Pijlman
http://www.applinet.nl/
  



More information about the Setup mailing list