Skip to content

Commit 06f1dc6

Browse files
added support for overriding default ports (#178)
* added support for overriding default ports * Update src/viur_cli/local.py Co-authored-by: Sven Eberth <[email protected]> * Apply suggestions from code review Co-authored-by: Sven Eberth <[email protected]> * Update src/viur_cli/local.py Co-authored-by: Sven Eberth <[email protected]> --------- Co-authored-by: Sven Eberth <[email protected]>
1 parent db3de2d commit 06f1dc6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/viur_cli/local.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ def run(profile, additional_args):
4646
f"Please install the 'gcloud' tool or Log in with an appropriate account.")
4747

4848
conf = config.get_profile(profile)
49+
additional_args = list(additional_args)
4950

50-
if appyaml := conf.get("appyaml"):
51-
additional_args = [f"--appyaml={appyaml}", *additional_args]
52-
51+
if conf.get("port"):
52+
additional_args.append(f"--port={conf['port']}")
53+
if conf.get("gunicorn_port"):
54+
additional_args.append(f"--gunicorn_port={conf['gunicorn_port']}")
55+
5356
utils.system(
5457
f'app_server -A={conf["application_name"]} {conf["distribution_folder"]} {" ".join(additional_args)}')
5558

0 commit comments

Comments
 (0)