This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-14
Channels
- # announcements (3)
- # babashka-sci-dev (22)
- # beginners (6)
- # calva (36)
- # cljsrn (1)
- # clojure (59)
- # clojure-europe (31)
- # clojure-france (3)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-uk (4)
- # clojurescript (6)
- # conjure (1)
- # cursive (11)
- # data-oriented-programming (1)
- # datahike (2)
- # docker (8)
- # duct (4)
- # emacs (1)
- # figwheel-main (5)
- # kaocha (1)
- # leiningen (8)
- # lsp (64)
- # malli (10)
- # membrane (5)
- # nrepl (11)
- # off-topic (5)
- # portal (6)
- # quil (9)
- # reagent (62)
- # reitit (15)
- # releases (3)
- # ring-swagger (2)
- # shadow-cljs (36)
- # specter (2)
- # tools-deps (21)
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?
maybe have a look at aero? https://github.com/juxt/aero'
Then you can create a config file which has tags for env-vars etc, and defaults etc.
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.
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?
(maybe I'm misunderstanding)