Environ is a Clojure library for managing environment settings from a number of different sources. It works well for applications following the 12 Factor App pattern.
Currently, Environ-plus supports four sources, resolved in the following order:
- config/test.clj
- config/development.clj
- config/ci.clj
- config/production.clj
Include the following dependency in your project.clj
file:
:dependencies [[environ-plus "0.1.1"]]
Add export ENVIRONMENT="development" to .zshrc or .bashrc
Copyright © 2014 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.