

def doStart(app, configFile, ourHost=None, ourPort=None, ourBasePath=None, ourPath=None, echo=False):
    _cfg = loadConfig(configFile, host=ourHost, port=ourPort, basepath=ourBasePath, logpath=ourPath)
    _db = None
    if ('secret' in _cfg):
        app.config['SECRET_KEY'] = _cfg.secret
    initLogging(app.logger, _cfg.logpath, echo=echo)
    if ('redis' in _cfg):
        _db = getRedis(_cfg.redis)
    return (_cfg, _db)

dataset/ETHPy150Open bear/python-indieweb/indieweb.py doStart/original