The easiest way is to enter/exit maintenance mode on the port 80 server ( 
nginx / apache )

with nginx, it's popular to 'touch' a file to enter maintenance mode -- so 
if "/var/www/sites/maintenance" exists, nginx will dispatch to another set 
of rules.  some people will also just use a different nginx config file. 

using a staging site is better, but if you want to test the same exact 
deployment ( which is useful ), i would have nginx/apache host two separate 
domains that proxy to the same destination:

* www.domain.com  ( public )
* admin.domain.com ( htaccess with a rotating user/pass )

you can set your routing rules so that when you go into maintenance mode, 
everything under your "public" site is rewritten to "/maintenance" [ either 
apache or pyramid ], but the admin.domain.com requests aren't changed.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to