Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meltwater/confex_config_provider
Confex runtime configuration provider for Distillery
https://github.com/meltwater/confex_config_provider
clientdata-no configuration distillery elixir lifecycle-maintenance production-dependency purpose-library runtime-configuration usage-application
Last synced: about 2 months ago
JSON representation
Confex runtime configuration provider for Distillery
- Host: GitHub
- URL: https://github.com/meltwater/confex_config_provider
- Owner: meltwater
- License: mit
- Created: 2018-10-11T13:25:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T09:43:59.000Z (over 1 year ago)
- Last Synced: 2024-10-29T08:40:54.218Z (about 2 months ago)
- Topics: clientdata-no, configuration, distillery, elixir, lifecycle-maintenance, production-dependency, purpose-library, runtime-configuration, usage-application
- Language: Elixir
- Size: 7.81 KB
- Stars: 3
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConfexConfigProvider
A [runtime configuration
provider](https://hexdocs.pm/distillery/extensibility/config_providers.html)
that uses [Confex](https://github.com/Nebo15/confex) and works with
Distillery 2.## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `confex_config_provider` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:confex_config_provider, "~> 0.1.0"}
]
end
```## Usage
Put this in in the `release :myapp` section of `rel/config.exs`:
```elixir
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:```elixir
unless ConfexConfigProvider.release_mode?() do
ConfexConfigProvider.configure_applications()
end
```Documentation is available at
[https://hexdocs.pm/confex_config_provider](https://hexdocs.pm/confex_config_provider).Ownership
=========This repository is maintained by [Team Haven](mailto:[email protected]).
If you need to make changes to or have any ideas for improvement at this, please coordinate with them.