def run_site(config_path): ''' Spawn flask app. Pass me path to config file with redis connection + key prefix settings. ''' app.config['config'] = Config(config_path) app.run(host='0.0.0.0', debug=True)
def run_site(config_path): ''' Spawn flask app. Pass me path to config file with redis connection + key prefix settings. ''' config = Config(config_path) config.redis_connection_pool = redis.ConnectionPool(**config.redis_connect) app.config['config'] = config app.run(**config.flask_run)