The problem is that I also have to load the dependencies (at least I think I do), which is why I was trying to get to Mix programmatically.
On Thursday, February 15, 2018 at 4:29:48 PM UTC-6, Paul Schoenfelder wrote: > > I would second the boot loader approach when viable, but since it's not in > your case, then there is nothing particularly special about how the paths > are set up, you just need to add the lib directory from your Elixir install > (e.g. `-pa <path to elixir/lib/*/ebin`) and the build directory where the > project code is (e.g. `-pa _build/<env>/lib/*/ebin`). If you need to > compile the project as part of this process, then indeed you might have > better luck just running Mix via `System.cmd` - there isn't necessarily > anything wrong with that approach, but then it's entirely up to you to > ensure that the spawned nodes are cleaned up before shutting down the > spawning node. > > On Thu, Feb 15, 2018 at 4:54 PM, pragdave <[email protected] <javascript:> > > wrote: > >> >> Oh, and just to clarify: I'm trying to do this in dev mode, so I want to >> run the application from its project directory. >> >> I may have to bit the bullet and just spawn a shell and run mix in it... >> :( >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/309dde84-a974-4176-b5f9-ff9fd93a3322%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/309dde84-a974-4176-b5f9-ff9fd93a3322%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> 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/0edf8b60-d244-46ef-bc2b-e3973f9a10ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
