diff --git a/src/viur_cli/local.py b/src/viur_cli/local.py index 1fd74c8..aad774b 100644 --- a/src/viur_cli/local.py +++ b/src/viur_cli/local.py @@ -46,10 +46,13 @@ def run(profile, additional_args): f"Please install the 'gcloud' tool or Log in with an appropriate account.") conf = config.get_profile(profile) + additional_args = list(additional_args) - if appyaml := conf.get("appyaml"): - additional_args = [f"--appyaml={appyaml}", *additional_args] - + if conf.get("port"): + additional_args.append(f"--port={conf['port']}") + if conf.get("gunicorn_port"): + additional_args.append(f"--gunicorn_port={conf['gunicorn_port']}") + utils.system( f'app_server -A={conf["application_name"]} {conf["distribution_folder"]} {" ".join(additional_args)}')