def main():
service.prepare_service("gapi", sys.argv)
log.info('Completed configuration file parsing...')
log.info('Completed logger initialization...')
app = api.setup_app()
log.info('Pecan app setup complete...')
host, port = cfg.CONF.gapi.host, cfg.CONF.gapi.port
log.info('Galaxia api server started in PID %s' % os.getpid())
log.info('Galaxia API is now serving on http://%(host)s:%(port)s' % dict(
host=host, port=port))
print ('Galaxia API is now serving on http://%(host)s:%(port)s' % dict(
host=host, port=port))
wsgi.server(eventlet.listen((host, port)), app, log=log)
评论列表
文章目录