Using elixir 1.11.0-rc.0
, calling the following in config/runtime.exs
overwrites all other configuration for the endpoint.
config :my_app, MyAppWeb.Endpoint,
secret_key_base: "abc123"
- Use the Elixir, Erlang and Node versions in
.tool-version
export SECRET_KEY_BASE=some_val
-
iex -S mix
andApplication.get_env(:my_app, MyAppWeb.Endpoint)
. Observe that only[secret_key_base: "some_val"]
is returned. - Comment out the
config
call inconfig/runtime.exs
-
iex -S mix
andApplication.get_env(:my_app, MyAppWeb.Endpoint)
. Observe that the keys configured underMyAppWeb.Endpoint
in the otherconfig/
files are now returned.