def local(reload, port):
    """run local app server, assumes into the account
    """
    import logging
    from bottle import run
    from app import controller, app
    from c7n.resources import load_resources
    load_resources()
    print("Loaded resources definitions")
    logging.basicConfig(level=logging.DEBUG)
    logging.getLogger('botocore').setLevel(logging.WARNING)
    if controller.db.provision():
        print("Table Created")
    run(app, reloader=reload, port=port)
def local ( reload , port ) : import logging from bottle import run from app import controller , app from c7n . resources import load_resources load_resources ( ) print ( "Loaded resources definitions" ) logging . basicConfig ( level = logging . DEBUG ) logging . getLogger ( 'botocore' ) . setLevel ( logging . WARNING ) if controller . db . provision ( ) : print ( "Table Created" ) run ( app , reloader = reload , port = port )
run local app server, assumes into the account