Skip to content

Commit

Permalink
Relativised the lighttpd conf in the worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrry committed Jul 28, 2011
1 parent b7d5d14 commit d1b00d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/python/skywriting/runtime/master/__init__.py
Expand Up @@ -95,9 +95,6 @@ def master_main(options):

cherrypy_conf = dict()

if options.staticbase is not None:
cherrypy_conf["/skyweb"] = { "tools.staticdir.on": True, "tools.staticdir.dir": options.staticbase }

app = cherrypy.tree.mount(root, "", cherrypy_conf)
lighty_conf_template = resource_filename(Requirement.parse("ciel"), "resources/lighttpd.conf")
if lighty_conf_template is not None:
Expand Down
8 changes: 2 additions & 6 deletions src/python/skywriting/runtime/worker/__init__.py
Expand Up @@ -38,6 +38,7 @@
from skywriting.runtime.worker.multiworker import MultiWorker
from skywriting.runtime.pycurl_thread import create_pycurl_thread
from skywriting.runtime.tcp_server import create_tcp_server
from pkg_resources import Requirement, resource_filename

class WorkerState:
pass
Expand Down Expand Up @@ -67,7 +68,7 @@ def __init__(self, bus, port, options):
# else:
# self.hostname = options.hostname

self.lighty_conf_template = options.lighty_conf
self.lighty_conf_template = resource_filename(Requirement.parse("ciel"), "resources/lighttpd.conf")
if options.blockstore is None:
self.static_content_root = tempfile.mkdtemp(prefix=os.getenv('TEMP', default='/tmp/sw-files-'))
else:
Expand Down Expand Up @@ -109,11 +110,6 @@ def __init__(self, bus, port, options):

cherrypy.config.update({"server.thread_pool" : 20})



if options.staticbase is not None:
self.cherrypy_conf["/skyweb"] = { "tools.staticdir.on": True, "tools.staticdir.dir": options.staticbase }

self.subscribe()

def subscribe(self):
Expand Down

0 comments on commit d1b00d7

Please sign in to comment.