I have solved a similar problem with a little bit of shell hackery. We also
have *a lot* of seed scripts.

What I did is something in the lines of:

```
for f in $(find $seedDirs -name seeds*.exs); do cd $somewhere && mix run
$f; done
```

I don't have the exact command right now, but its not far away from that.

On Fri, Aug 12, 2016 at 5:46 AM, Michał Muskała <[email protected]> wrote:

>
> > On 12 Aug 2016, at 10:26, José Valim <[email protected]>
> wrote:
> >
> > 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).
> >
>
> I cannot solve this with an alias - I can't create a recursive alias in
> the root of umbrella.
>
> I didn't knew mix cmd existed. It indeed covers this use case. Thank you.
>
> 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/941D9D0F-E2BB-4777-9F57-5590102AA868%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/CACh6Pr5o%3D8o098ttsF-tE4s1ev63tcvr%3D91tNDE7MvVmyRmLmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to