aboutsummaryrefslogtreecommitdiffstats
path: root/cfbe.py
diff options
context:
space:
mode:
authorSteve Losh <steve@stevelosh.com>2009-01-29 21:41:39 -0500
committerSteve Losh <steve@stevelosh.com>2009-01-29 21:41:39 -0500
commitee7c28659703f2f832eeadfbc1d13607e845e39a (patch)
tree7191c5612d5a79bbfaaf69b6f0c195f4b282ca2a /cfbe.py
parent17bd39c87dc4133d4e31ec0fd11e155f3fe209a9 (diff)
downloadbugseverywhere-ee7c28659703f2f832eeadfbc1d13607e845e39a.tar.gz
Got the static serving working.
Diffstat (limited to 'cfbe.py')
-rwxr-xr-xcfbe.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cfbe.py b/cfbe.py
index 25a549d..6a9fec3 100755
--- a/cfbe.py
+++ b/cfbe.py
@@ -4,11 +4,11 @@ import cherrypy
from libbe import bugdir
from jinja2 import Environment, FileSystemLoader
-template_root = '/Users/sjl/Documents/cherryflavoredbugseverywhere/templates'
bug_root = '/Users/sjl/Documents/stevelosh/.be'
bd = bugdir.BugDir(root=bug_root)
bd.load_all_bugs()
+template_root = '/Users/sjl/Documents/cherryflavoredbugseverywhere/templates'
env = Environment(loader=FileSystemLoader(template_root))
class WebInterface:
@@ -20,4 +20,5 @@ class WebInterface:
return template.render(bugs=bd)
-cherrypy.quickstart(WebInterface())
+config = '/Users/sjl/Documents/cherryflavoredbugseverywhere/cfbe.config'
+cherrypy.quickstart(WebInterface(), '/', config)