Creates an environment by merging config data from different sources. Reads in this order:
config.edn
found on the classpath$env-name/config.edn
found on the classpathA common scenario is to have an env
folder (added to the classpath),
that contains a folder for each named environment. :dev
config
would then be found under env/dev/config.edn
.
To set which environment to use, set the ENV enviroment variable.
:dev
is default if none is given.
Creates an environment by merging config data from different sources. Reads in this order: - The first `config.edn` found on the classpath - The first `$env-name/config.edn` found on the classpath - enviromnent variables - java system properties A common scenario is to have an `env` folder (added to the classpath), that contains a folder for each named environment. `:dev` config would then be found under `env/dev/config.edn`. To set which environment to use, set the ENV enviroment variable. `:dev` is default if none is given.
(get-env)
Returns the current environment map
Returns the current environment map
(get-env-name)
Return the current ENV name, or :dev
if not specified
Return the current ENV name, or `:dev` if not specified
(load-env env-name & configs)
Generate a map of environment variables.
Generate a map of environment variables.
(setup-env!)
(setup-env! env-name)
Setup environment map for a particular environment name
Setup environment map for a particular environment name
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |