Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run `iex -S mix` without compiling changed files?

Say I'm writing a new module, the code isn't ready yet and I want to test something in the repl. I run iex -S mix and it fails because of compilation errors I didn't intend to fix yet.

I presume there is a last compiled version of my app that I could run with iex. How do I do that?

like image 200
Morozov Avatar asked Jan 15 '18 11:01

Morozov


1 Answers

mix is a shortcut to mix run. If you invoke mix help run, you will see there are many options there, including a --no-compile one. Therefore:

iex -S mix run --no-compile
like image 86
José Valim Avatar answered Oct 06 '22 23:10

José Valim