Skip to content

Instantly share code, notes, and snippets.

@jfreeze
Created April 30, 2014 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfreeze/b455b5c1728f9a71af24 to your computer and use it in GitHub Desktop.
Save jfreeze/b455b5c1728f9a71af24 to your computer and use it in GitHub Desktop.
Mix.exs dependencies
In mix.exs of MyApp
def application do
[
mod: { MyApp, [] },
applications: [ :httpoison ],
env: [
account: [ company: "WIC" ]
]
]
end
In Main app that include MyApp as a dependency
:application.get_env(:myapp, :account) # does not work
:application.get_env(:myapp) => []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment