Implied applications and `extra_applications`
In your mix file (mix.exs
) the application
function returns a keyword list. Two options in that list determine what applications are started at runtime.
The applications
is by default implied based on your app's dependencies. The default list is thrown away through if this option is set in your mix.exs file.
If you want to add an extra application without disrupting the default, implied list then you can add the optionextra_applications
. This leaves the default, implied list of applications untouched.
H/T Jose Valim PR
def application do
[
mod: {Tilex, []},
extra_applications: [:logger]
]
end
Tweet