Changeset 2661 for package_branches/invirt-web/cherrypy-rebased/code
- Timestamp:
- Dec 20, 2009, 9:43:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.fcgi
r2660 r2661 11 11 12 12 if __name__=="__main__": 13 static_dir = os.path.join(base_dir, 'static') 14 13 15 if len(sys.argv) > 1: 14 16 conf_file = sys.argv[1] … … 16 18 else: 17 19 conf_file = os.path.join(base_dir, 'main.conf') 18 app = cherrypy.tree.mount(InvirtWeb(), '/' if dev else '/main.fcgi') 20 app = cherrypy.tree.mount(InvirtWeb(), 21 '/' if dev else '/main.fcgi', 22 {'/': {'tools.staticdir.root': static_dir}, 23 '/static': {'tools.staticdir.on': True, 24 'tools.staticdir.dir': static_dir} 25 }) 19 26 app.merge(conf_file) 20 27 cherrypy.config.update(conf_file)
Note: See TracChangeset
for help on using the changeset viewer.