Managing Different Environment Settings In Clojure With Leiningen
clojure
When developing applications in Clojure, one thing you might need is to be able to somehow keep different settings for each environment. For instance, you might want to be able to have different database settings for each environment.
This can be achieved with leiningen profiles:
```clojure :profiles {:dev-overrides {} :dev [:dev-overrides {:dependencies [[com.cemerick/austin "0.1.5"] [com.cemerick/piggieback "0.1.4-SNAPSHOT"] [ring-mock "0.1.5"]] :plugins [[com.keminglabs/cljx "0.5.0"] [com.cemerick/austin "0.1.5"] [lein-cljsbuild "1.0.3"]]}] :test-overrides {} :test [:dev :test-overrides]} ``` Assuming you have that :profiles sub-map somewhere in your project.
Read more...