Run "iex" with the application loading and run the command in 1 line

I want to make an automatic build like "gulp.js" in Node.js.

$ iex -S mix -e 'DribbbleGif.main'

** (Mix) It is not possible to implicitly pass flags for the default mixing task; instead, it calls: mix run

I want to do this in 1 line.

  • download application
  • start "iex"
  • do function (DribbbleGif.main)

Because, finally, I want to see such a file.

chokidar ** / *. exs ** / *. ex -c 'iex -S mix -e' DribbbleGif.main ''


If you have another solution for automatic assembly, let me know.

+8
elixir
source share
1 answer

Try:

iex -S mix run -e "DribbbleGif.main" 
+7
source share

All Articles