I’m looking for a way to set a fixed admin port for the conductor. My current understanding got me to 2 road blocks
When using hc sandbox there’s an option --force-admin-ports or -f according to the subcommand help. But it seems to no be up to date because I get
hc sandbox generate workdir/happ --force-admin-ports 65000
error: Found argument '--force-admin-ports' which wasn't expected, or isn't valid in this context
When using holochain and the conductor-config.yml, I can configure
which allows me to run the conductor, but I don’t know how to specify my DNAs or hApp. Is there any documentation on this?
So I’m asking to be pointed to docs or a hint how to achieve a fixed admin port.
OR - in case this is an XY problem - what I’m really trying to do is, I have a client web app that needs to call zome functions, and I’m currently using the conductor’s admin API to figure out the cell IDs and then run the functions. But the admin port changes every time I run the sandbox.
That works well and begs more questions for me regarding if a holochain is global for a participant and hApps are all installed to the same holochain or if each app that a user wants to install on their device comes with its own holochain. But this is a matter of deployment and distribution so I’ll research the forum and would post another question.
If I’m not mistaken, the force admin argument needs to go right after the “generate” keyword. It should work, at least with the shortened version “-f”.
hc sandbox -f=65000 generate workdir/happ hc sandbox --force-admin-ports=65000 generate workdir/happ
In the meantime there’s a much simpler solution to my problem, and yes it was an XY problem. Connecting to the admin API first to install a hApp or query for the installed hApp is quite laborious and would be impractical if that was the default way of figuring out a cell ID.
So the easiest solution to the problem is to use the app API’s appInfo function call to retrieve the cell ID and then make zome calls (thank you @tixel).