Beispiel #1
0
def main():
    args = parser.parse_args()

    config = utils.load_config(args.config)

    service_module = importlib.import_module('{}.service'.format(args.service))

    app = service_module.create_application(config)

    logging.info('start service')

    web.run_app(app, port=config['service']['port'])
Beispiel #2
0
def main():
    args = parser.parse_args()

    config = utils.load_config(args.config)

    service_module = importlib.import_module('{}.service'.format(args.service))

    app = service_module.create_application(config)

    logging.info('start service')

    web.run_app(app, port=config['service']['port'])
Beispiel #3
0
def get_config():
    config_path = os.path.join(os.path.dirname(__file__), 'fixtures',
                               'config.json')
    return utils.load_config(config_path)
Beispiel #4
0
def get_config():
    config_path = os.path.join(os.path.dirname(__file__), 'fixtures', 'config.json')
    return utils.load_config(config_path)