diff options
Diffstat (limited to 'index.py')
-rwxr-xr-x | index.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -153,7 +153,7 @@ class SubdapSite(object): config = { 'global': { 'server.socket_port': 8080, - 'server.socket_host': '127.0.0.1', + 'server.socket_host': '0.0.0.0', # 'server.socket_host': '::1', 'tools.staticdir.root': appbase, }, @@ -173,6 +173,9 @@ config = { } if len(sys.argv) >= 2 and sys.argv[1] == 'standalone': + import tmpl + tmpl.myurl = lambda x: x + cherrypy.quickstart(SubdapSite(), "/", config) else: cherrypy.config.update({'environment': 'embedded'}) |