Created
April 30, 2014 16:35
-
-
Save jfreeze/b455b5c1728f9a71af24 to your computer and use it in GitHub Desktop.
Mix.exs dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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