Fork me on GitHub
#polylith
<
2023-12-28
>
Chris Lester22:12:47

@seancorfield Do you have a complete example somewhere on how you integrated your REPL toolset into a polylith component so you can connect to the deployed server? I saw your post about creating a component for it to include which described some of your setup but not how you are using it. I'd like to add a remote repl to a containerized uberjar I'm deploying and Clojure's docs (and posts, etc.) are obscure on how to do so .. and Practicalliii's template seems too complex to merge in.

seancorfield00:12:30

The meat of it is described in this blog post https://corfield.org/blog/2022/12/18/calva-joyride-portal/ -- the maybe-start-server function is in the implementation, the nREPL/Portal "starters" are defonce in the interface.

seancorfield00:12:18

Any app that depends on that component gets nREPL and Portal started up.

seancorfield00:12:26

I'm not sure what's missing from that blog post to bridge the gap of "how you are using it"...?

Chris Lester00:12:35

Thanks Sean. I'm not sure. I missed the interface defs somehow. I'll blame it on brain fog from the cold I've contracted lol.

1
seancorfield01:12:11

No problem. Happy to update the post if it can be made clearer!