View Source Skogsra.Provider.Yaml (Skogsrå v2.5.0)
This module defines a YAML config provider for Skogsra.
Important: You need to add
{:yamerl, "~> 0.7"}
as a dependency along withSkogsra
because the dependency is optional.
The following is an example for Ecto
configuration:
# file: /etc/my_app/config.yml
- app: "my_app"
module: "MyApp.Repo"
config:
database: "my_app_db"
username: "postgres"
password: "postgres"
hostname: "localhost"
port: 5432
Then in your release configuration you can add the following:
config_providers: [{Skogsra.Provider.Yaml, ["/etc/my_app/config.yml"]}]
Once the system boots, it'll parse and add the YAML configuration.
Summary
Types
@type key() :: [integer()]