summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authorequinox <equinox@diac24.net>2011-09-27 02:12:04 +0200
committerequinox <equinox@diac24.net>2011-09-27 02:12:04 +0200
commit540b67f278dd4b47f4717a22f6638e41a954b703 (patch)
tree8bc7c221e245e996d130fb1264c53c5b6668a2bd /index.py
parente40d460516a1eac36226fbb786387dff1685e185 (diff)
setup stuff
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.py b/index.py
index 8aa1c35..6432919 100755
--- a/index.py
+++ b/index.py
@@ -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'})