It would be great if there was an easy way to execute logic before any
application in the mix application list is started.
I know about :start_phases in mix.exs/application, but this requires that
you take move applications from :applications to :included_applications,
then start them all yourself.
I have also heard there are ways to do it for releases, but it would be
great to be able to do it in development as well the same way.
If this feature was added, it would enable better ways to do configuration.
In the current situation, you are at the mercy of other developers adding
support for {:system} type tuples, if you want to use that approach, for
example. Some developers don't support it at all, some support ones with 2
elements, and not with 3, or support it for some configuration properties,
and not for others (hi Ecto). Overall, it seems like it is a little harder
to reason about than it needs to be.
This feature would enable a convenient escape.
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/20ea6bec-0e1e-44a3-881a-1561768fd6c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.