Liking cljdoc? Tell your friends :D

fooheads.miljo

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.

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.
raw docstring

get-envclj

(get-env)

Returns the current environment map

Returns the current environment map
sourceraw docstring

get-env-nameclj

(get-env-name)

Return the current ENV name, or :dev if not specified

Return the current ENV name, or `:dev` if not specified
sourceraw docstring

load-envclj

(load-env env-name & configs)

Generate a map of environment variables.

Generate a map of environment variables.
sourceraw docstring

setup-env!clj

(setup-env!)
(setup-env! env-name)

Setup environment map for a particular environment name

Setup environment map for a particular environment name
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close