How Environ resolves configuration sources
masterEnviron manages environment settings by resolving them from multiple sources in a specific order of precedence. If a key exists in multiple sources, the one higher in this list wins:
- A
.lein-envfile in the project directory (managed bylein-environ). - A
.boot-envfile on the classpath (managed byboot-environ). - Environment variables.
- Java system properties.
Important Note: When running a compiled uberjar (e.g., via lein uberjar), Environ cannot access settings from project.clj. In production/compiled environments, you must use shell environment variables or Java system properties.