hellhound.config

This namespace contains core functions which are required by the whole framework in order to operate. Functions which provide easy way to read application configurations based on current environment. Default environment is development. In order to change the environment you need to set the HH_ENV environment variable to new value like production.

application-config

(application-config)

Return the current runtime environment configuration.

environment-configuration

get-config

(get-config & config-keys)

Fetch the given key (or nested keys) from the environment config of the project other. Returns the default value from hellhound.config.

Examples:

;; Returns the value of `:http` from the config file
(get-config :http)

;; Returns the value of `:host` key inside `:http` map.
(get-config :http :host)

load-runtime-configuration

(load-runtime-configuration)

Read and parse the configuration file related to the current runtime environment.