def main(): server.setup_common(possible_topdir, 'all-in-one') app = server.make_app() server.setup_sahara_api('all-in-one') server.setup_sahara_engine() wsgi.server(eventlet.listen((cfg.CONF.host, cfg.CONF.port), backlog=500), app, log=logging.WritableLogger(LOG), debug=False)
def main(): server.setup_common(possible_topdir, 'API') app = server.make_app() server.setup_sahara_api('distributed') server.setup_auth_policy() from oslo.config import cfg wsgi.server(eventlet.listen((cfg.CONF.host, cfg.CONF.port), backlog=500), app, log=logging.WritableLogger(LOG), debug=False)
def main(): dev_conf = os.path.join(possible_topdir, 'etc', 'sahara', 'sahara.conf') config_files = None if os.path.exists(dev_conf): config_files = [dev_conf] config.parse_configs(sys.argv[1:], config_files) logging.setup("sahara") app = server.make_app() wsgi.server(eventlet.listen((cfg.CONF.host, cfg.CONF.port), backlog=500), app, log=logging.WritableLogger(LOG), debug=False)