Alembix (alembix v0.1.2)
## Install
In your mix.exs
file add alembix to the release config
defp releases do
[
api: [
include_executables_for: [:unix],
applications: [
runtime_tools: :permanent,
alembic: :permanent,
api: :permanent
],
runtime_config_path: "config/releases.exs",
]
]
end
## Use
In your release.exs file use Alembix to fetch variables.
config :api, :server, Alembic.fetch_boolean!("START_SERVER")
Link to this section Summary
Link to this section Functions
Link to this function
fetch_atom(name, default \\ nil)
Link to this function
fetch_atom!(name)
Link to this function
fetch_base_16(name, default \\ nil)
Link to this function
fetch_base_16!(name)
Link to this function
fetch_boolean(name, default \\ [])
Link to this function
fetch_boolean!(name)
Link to this function
fetch_env(name, default \\ nil)
Link to this function
fetch_env!(name)
Link to this function
fetch_integer(name, default \\ nil)
Link to this function