This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-28
Channels
- # beginners (8)
- # boot (49)
- # cljs-dev (29)
- # cljsrn (9)
- # clojure (238)
- # clojure-dev (3)
- # clojure-gamedev (1)
- # clojure-italy (7)
- # clojure-norway (11)
- # clojure-russia (39)
- # clojure-sanfrancisco (3)
- # clojure-spec (116)
- # clojure-sweden (2)
- # clojure-uk (53)
- # clojurescript (90)
- # cursive (13)
- # datomic (12)
- # defnpodcast (2)
- # dirac (1)
- # emacs (11)
- # figwheel (2)
- # hoplon (15)
- # jobs (3)
- # jobs-discuss (48)
- # keechma (1)
- # klipse (4)
- # leiningen (16)
- # luminus (4)
- # lumo (49)
- # mount (10)
- # off-topic (1)
- # om (13)
- # onyx (15)
- # pedestal (67)
- # perun (1)
- # planck (16)
- # powderkeg (33)
- # proton (1)
- # protorepl (2)
- # re-frame (16)
- # reagent (4)
- # ring (9)
- # ring-swagger (10)
- # rum (5)
- # slack-help (1)
- # spacemacs (1)
- # uncomplicate (15)
- # untangled (19)
- # yada (58)
I’m using environ
for getting env vars from a profiles.clj
file while in development (my local machine). But when I run lein run
it doesn’t seem to pick up my environment vars declared in profiles.clj
{:dev {:env {:database-url "//localhost:5432/postgresql"
:database-user "app"
:database-password "app"}}}
it’s almost like lein run
isn’t using the dev
profile
anyone have any suggestions?
lein run with-profile dev
isn’t working, either
@bostonaholic Did you add lein-environ
to project.clj
? https://github.com/weavejester/environ#installation
I didn’t think I needed since it says If you want to be able to draw settings from the Leiningen project map
but that did the trick
thanks @xiongtx
I’ll ask to update the docs for environ that you need it also for accessing profiles.clj
yeah, I knew that. I was just confused by the environ docs cause I wasn’t explicitly pulling from project.clj
it makes sense why, now. but could be more clear in the docs