leiningen

V 2022-03-14T12:24:07.604789Z

Hello, i've built my uberjar using leinigen uberjar. I want to run it with lein run, which works, but my system needs about 30 environment variables to start up. Is there a way to add an .env file to lein run?

eskos 2022-03-15T13:01:16.163359Z

FWIW, .env is not a standard file, it’s originally nodejs specific which has sort of spread elsewhere and is supported very randomly if at all. A huge +1 for aero from me as well.

V 2022-03-15T13:27:42.344529Z

Ah i didnt know that πŸ™‚ Aero seems to solve my issues also!

2022-03-15T19:12:28.702159Z

a primary benefit of making an uberjar is not needing lein at runtime - why exactly would you use lein run instead of using java to run the uberjar?

2022-03-15T19:12:51.319409Z

(maybe I'm misunderstanding)

Linus Ericsson 2022-03-14T12:28:45.255459Z

maybe have a look at aero? https://github.com/juxt/aero'

Linus Ericsson 2022-03-14T12:29:09.629209Z

Then you can create a config file which has tags for env-vars etc, and defaults etc.

πŸ™ 1
V 2022-03-14T12:30:00.863119Z

I'll have a look! Thank you