src/kelp/__init__.py
def deploy_application(args):
    """Run a sls deploy ton deploy the severless application"""
    logger.info("Deploying application...")
    logger.info(f"Checking in {args.path} for IAC files")
    os.chdir(args.path)

    if args.debug:
        result = subprocess.run(["sls", "deploy", "--stage=prod", "-v"])
    else:
        result = subprocess.run(["sls", "deploy", "--stage=prod"], stdout=subprocess.DEVNULL)

    if result.returncode != 0:
        logger.exception("Failed to deploy application")
        sys.exit()
    os.chdir("..")
    logger.info("Application deployed successfully")
Run a sls deploy ton deploy the severless application
Run a sls deploy ton deploy the severless application
Run a sls deploy ton deploy the severless application
def deploy_application(args):
    logger.info("Deploying application...")
    logger.info(f"Checking in {args.path} for IAC files")
    os.chdir(args.path)
    if args.debug:
        result = subprocess.run(["sls", "deploy", "--stage=prod", "-v"])
    else:
        result = subprocess.run(["sls", "deploy", "--stage=prod"], stdout=subprocess.DEVNULL)
    if result.returncode != 0:
        logger.exception("Failed to deploy application")
        sys.exit()
    os.chdir("..")
    logger.info("Application deployed successfully")
def deploy_application ( args ) : logger . info ( "Deploying application..." ) logger . info ( f"Checking in {args.path} for IAC files" ) os . chdir ( args . path ) if args . debug : result = subprocess . run ( [ "sls" , "deploy" , "--stage=prod" , "-v" ] ) else : result = subprocess . run ( [ "sls" , "deploy" , "--stage=prod" ] , stdout = subprocess . DEVNULL ) if result . returncode != 0 : logger . exception ( "Failed to deploy application" ) sys . exit ( ) os . chdir ( ".." ) logger . info ( "Application deployed successfully" )
Run a sls deploy ton deploy the severless application
Run a sls deploy ton deploy the severless application
"""Run a sls deploy ton deploy the severless application"""
args