weave v4.0.0 Weave.Loaders.Environment

This loader will utilise the available environment variables to provide configuration. A prefix must be specified.

loaders: [
  {Weave.Loaders.Environment, prefix: "MY_APP_"},
  {Weave.Loaders.Environment, prefix: nil} # Use nil to load all environment variables
]

With the above configuration, any environment variables that begin with MY_APP_ will be sent to the handler. Please note, these will be “sanitized” before being sent to the handler.

This means “MY_APP_NAME” will become “name”

Link to this section Summary

Functions

Safety net to provide debug when people don’t configure their loaders correctly

Link to this section Functions

Link to this function load_configuration(list)
load_configuration(options: list(), only: list(), handler: atom()) :: list()

Safety net to provide debug when people don’t configure their loaders correctly