biff

jf 2024-06-12T14:53:10.086599Z

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?

2024-06-12T17:52:26.175339Z

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.

jf 2024-06-12T23:24:30.394129Z

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

chromalchemy 2024-06-12T17:14:37.385019Z

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