diff --git a/src/viur_cli/cloud.py b/src/viur_cli/cloud.py index 71d02e2..206e017 100644 --- a/src/viur_cli/cloud.py +++ b/src/viur_cli/cloud.py @@ -571,7 +571,7 @@ def deploy(action, profile, name, ext, yes, skip_checks: bool, additional_args): return else: echo_info("\U00002714 No vulnerabilities found.") - + version = replace_vars( conf["version"], {k: v for k, v in conf.items() if k not in ["version"]} @@ -720,7 +720,7 @@ def build_deploy_command(name, conf): f"You can create a cloudfunction entry by calling 'viur cloud create function'") command = ( - f"gcloud functions deploy " + f"gcloud run deploy " f"{name} " f"--region='{conf['region']}'" f"--max-instances={conf['max-instances']}" @@ -799,12 +799,13 @@ def create(profile, action, gen, source, name, entrypoint, env_vars_file, memory function_dict["trigger"] = function_dict.get("trigger", trigger if trigger else click.prompt( "Please enter your cloud function trigger type", - default="http") + default="https") + ) function_dict["source"] = function_dict.get("source", source if source else click.prompt( - "Enter the directory of your cloud functio" + "Enter the directory of your cloud function" "(deploy/cloudfunction/{FileName})") ) @@ -813,4 +814,5 @@ def create(profile, action, gen, source, name, entrypoint, env_vars_file, memory config[profile] = conf config.migrate() echo_positive("Your cloud function creation was successful, if you want to add more flags, " - "add them in your project.json under") + "add them in your project.json") +