Georgy Savva
Georgy Savva

Reputation: 689

Elixir: run an application from the parent directory

I have a root directory and several elixir applications inside it. Is there a way to: mix run --no-halt some of the applications from the root directory, not the application dir?

my_root_dir
|
├── my_first_app
|
├── my_second_app

Upvotes: 0

Views: 210

Answers (1)

Tyler
Tyler

Reputation: 18177

You need to set the MIX_EXS variable to point to a mix.exs file. For your case it is probably something like:

MIX_EXS=my_root_dir/my_first_app/mix.exs mix run --no-halt

Upvotes: 1

Related Questions