Skip to content

meltwater/confex_config_provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConfexConfigProvider

A runtime configuration provider that uses Confex and works with Distillery 2.

Installation

If available in Hex, the package can be installed by adding confex_config_provider to your list of dependencies in mix.exs:

def deps do
  [
    {:confex_config_provider, "~> 0.1.0"}
  ]
end

Usage

Put this in in the release :myapp section of rel/config.exs:

  set(config_providers: [ConfexConfigProvider])

Then, make sure that if the app is not in a release, Confex tuples are still resolved. E.g. you could put this at the top of you application.ex's start/2 function:

unless ConfexConfigProvider.release_mode?() do
  ConfexConfigProvider.configure_applications()
end

Documentation is available at https://hexdocs.pm/confex_config_provider.

Ownership

This repository is maintained by Team Haven. If you need to make changes to or have any ideas for improvement at this, please coordinate with them.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages