I have a project world_app which I have included in hello_app as a dependency (I have included it as a local dependency if that's relevant)
defp deps do
[
{:world_app, path: "../world_app"}
]
end
The world_app has a config.exs that has this configuration
config :world_app, some_config: "config_string"
My problem arises when I try to get the config variable defined in world_app in hello_app (I ran iex -S mix in hello_app)
iex(1)> Application.get_all_env(:world_app)
[included_applications: []]
iex(2)> Application.get_env(:world_app, :some_config)
nil
However, when I do the same thing in world_app I can see the variables
iex(1)> Application.get_all_env(:world_app)
[some_config: "config_string", included_applications: []]
iex(2)> Application.get_env(:world_app, :some_config)
"config_string"
I've always been under the impression that I could access a dependency's config from the parent application; am I missing something crucial here?
I'm using Elixir 1.5.3 and erlang 20