I am -1 because you can solve it with aliases OR by using "mix cmd mix run priv/repo/seeds.ex" (which runs a command on all children apps).
*José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R&D On Fri, Aug 12, 2016 at 10:00 AM, Michał Muskała <[email protected]> wrote: > Hello everybody, > > Today I encountered an interesting problem. We're doing seeding for our > applications with a custom mix alias: "run priv/repo/seeds/**/*", which > works great. The problem is we're using umbrella applications with multiple > ecto repos, so each application has it's own seeds. You can imagine how > annoying it is having to run seeds for each application separately. > > I would like to propose adding --recursive flag to the run task, that > would make it apply it's arguments in each application separately. This > would allow creating an alias in the top-level mix.exs to run seeds in each > application. > > What do you think? > > Michał. > > -- > 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/70E6F291-32AD-422C-BE60-27F493E423F1%40muskala.eu. > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGnRm4%2B93XkzsxOB182YGY0XNGW%2BMbspj6CzzE5E2v09YN1A7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
