leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
2020-10-26T15:46:52.031900Z

@joao.galrito don't use lein itself in production, use lein uberjar to make a jar, then run it via java

João Galrito 2020-10-29T23:06:11.034400Z

Alright, I had searched online for "deploy clojure apps to production" and a lot of people talked about being fine using lein

2020-10-30T01:55:55.034600Z

the problem is that there's no advantage to lein in production, and there are actual disadvantages (in terms of resource usage, startup time for example)

2020-10-26T15:48:02.032600Z

there are also dedicated libraries for managing long running java programs, eg. jsvc

zilti 2020-10-26T16:05:03.033100Z

It is also really simple to write a .service file for systemd (or an rc file if on BSD) for running an uberjar

2020-10-26T16:06:10.033700Z

regardless - don't use lein as a prod launcher, it's just a bad idea

2020-10-26T16:06:49.033800Z

with a .service file how do you handle controlled shutdown - via signal handler?

zilti 2020-10-26T16:09:38.034Z

Well, if you absolutely have to have code run on shutdown, you can use Runtime's addShutdownHook but so far I wasn't in a situation where that was needed