Fork me on GitHub
#biff
<
2024-06-12
>
jf14:06:10

I'm going through the server deployment script right now, and I see babashka, and something new to me, trenchman. My questions for both are the same: is it needed, and if so, what is it used for?

Jacob O'Bryant17:06:26

Trenchman is used by the clj -M:dev soft-deploy command, so it can run an ssh command that then talks to the production app over nrepl (specifically, it tells the server to call your on-save function): https://github.com/jacobobryant/biff/blob/9eaa3251b252ae9bb368105519e83e2b6b0efe1f/libs/tasks/src/com/biffweb/tasks.clj#L371 babashka was used previously to start the app, until I switched to using clj -M:dev ... commands for everything. I don't think babashka is necessary anymore; pretty sure I just forgot to take it out of the server-setup.sh script.

jf23:06:30

thank you for the detail! that's what I was looking for

chromalchemy17:06:37

Trenchman can serve a remote nrepl, to interact with production instance of app. https://github.com/athos/trenchman Not sure if that is the main repl (for optional develop in prod?) or if for something else.

1