Forums

how to create temp static home page while web2py undergoing patching

how would I install a plain static web page that displays "This Web2py app is temporarily down while we install updates"?

I redirect through a SSL service and my routes.py looks like:

!/usr/bin/python

-- codingf-8 --

routers = dict( # base router BASE=dict( default_application='myDomain', domains={'www.myDomain':'myDomain'} ), )

thanks,

Alex Glaros

Create a static file mapping from / to the file that you want to use and all requests to your web app will get that file. When your maintenance is done, delete the mapping.