Fork me on GitHub
#leiningen
<
2022-03-14
>
V12:03:07

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?

Linus Ericsson12:03:09

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

🙏 1
V12:03:00

I'll have a look! Thank you

eskos13:03:16

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.

V13:03:42

Ah i didnt know that 🙂 Aero seems to solve my issues also!

noisesmith19:03:28

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?

noisesmith19:03:51

(maybe I'm misunderstanding)