0

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
2
  • The question is why would you want to in the first place? Commented Jan 8, 2018 at 7:59
  • I would echo the why would you need this in the first place. If it is because you expect the current working directory to be on a certain location, it means you are relying on relative paths and that's usually a no-no. Functions like Application.app_dir are supposed to help with that. Commented Jan 10, 2018 at 9:53

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.