How to run "iex -S mix" without compiling modified files?

Say I'm writing a new module, the code is not ready yet, and I want to check something in repl. I run iex -S mix, and it fails due to compilation errors that I still do not intend to fix.

I assume there is the latest compiled version of my application that I could run with iex. How to do it?

+6
source share
1 answer

mixis an abbreviation of mix run. If you call mix help run, you will see that there are many options, including --no-compile. Therefore:

iex -S mix run --no-compile
+16
source

All Articles