Mercurial > p > roundup > code
diff roundup/scripts/roundup_demo.py @ 7925:f5f09ed9a783
fix: roundup_demo should use port assignment
There are three port values:
urlport (-P) - used in the URL when docker maps real port to external port
port (-p) - used to set port roundup listens on
DEFAULT_PORT = 8917 used for -p if not set.
Before the -p argument was not used if -P was not set. So you
can override the default 8917.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 02 May 2024 21:21:40 -0400 |
| parents | c73a1177c2b2 |
| children | 05f36a527a45 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_demo.py Wed May 01 12:52:52 2024 -0400 +++ b/roundup/scripts/roundup_demo.py Thu May 02 21:21:40 2024 -0400 @@ -170,7 +170,7 @@ # install demo.install_demo(home, backend, admin.AdminTool().listTemplates()[template]['path'], - use_port=cli_args.urlport or DEFAULT_PORT) + use_port=cli_args.urlport or cli_args.port or DEFAULT_PORT) else: # make sure that no options are specified that are only useful on initialization. if ( cli_args.backend or cli_args.template or
