def __init__(self, env, project):
        self.env = env
        self.proxy_app = Proxy('http://localhost:%s/' % env.c.port)

        # import here to avoid circular dependencies.
        from synthesepy import web
        self.web_app = web.get_application(project=project)

        self.static_apps = []
        for base, path in env.c.static_paths:
            self.static_apps.append((base, static.Cling(path)))