Change default port 4000 when using `daml ledger navigator`
App Development3 posts504 views9 likesLast activity Jun 2020
ME
meetOP
Jun 2020How do I spin up the navigator on a different port instead of the default 4000 when using the daml ledger navigator command?
CO
cocreature
Jun 2020daml ledger navigator passes all additional arguments down to the underlying daml navigator command. This is a bit tricky here since daml ledger navigator also takes a --port flag itself which specifies the port of the ledger while daml navigator takes a --port flag that specifies the port of Navigator.
- If you already have a
--portflag, you can add the Navigator port as a second flag viadaml ledger navigator --host ledgerhost --port ledgerport --port navigatorport. - If you don’t have a
--portflag, you need to add a bit of--to make sure thatdaml ledger navigatorpasses the--portflag down instead of interpreting it itself. Somewhat confusingly you need two here sodaml ledger navigator -- -- --port navigatorportworks. I’ll see if we can make that a bit less confusing.
AN
anthony
Jun 2020need to add a bit of
--
Missed opportunity to call it a “dash of --”