From ee7c28659703f2f832eeadfbc1d13607e845e39a Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Thu, 29 Jan 2009 21:41:39 -0500 Subject: Got the static serving working. --- cfbe.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cfbe.py') 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) -- cgit