On Nov 21, 2010, at 10:38 AM, Branko Vukelic wrote: > > "Under maintenance" switch. That's not a bad idea for production > sites. Maybe there is a cheap trick like making an "index.html" file > in /static and renaming it to "index.html.disabled" when the "under > maintenance" switch is turned off.
This could be done using routing: change routes_in to map everything for a particular app to app/static/index.html, and call gluon.rewrite.load(). It could also be a rewrite enhancement: we could create gluon.rewrite.maintenance() that you'd call with a static path and an appname to turn on maintenance mode, and with None to turn it off again, without the need to alter route.py (or even *have* routes.py, which would be nice when the host server is doing the real rewriting). We could also have a default synthetic maintenance page, so that you wouldn't have to have an actual page in the file system. I agree that a convenient maintenance mode would be quite handy. > > On Sun, Nov 21, 2010 at 7:30 PM, Luis Díaz <diazluis2...@gmail.com> wrote: >> other suggestions: >> >> button to temporarily disable the application mind, but which allows run on >> 127.0.0.1 >> >> in this way could work in the system and the visitor would see that the >> system is under maintenance >> >> -- >> Díaz Luis >> TSU Analisis de Sistemas >> Universidad de Carabobo >> http://web2pyfacil.blogspot.com/ >> Facultad de Odontología