简体   繁体   中英

Start “iex” with loading app, and run command in 1 line

I want to do auto build like "gulp.js" in Node.js.

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

** (Mix) Cannot implicitly pass flags to default mix task, please invoke instead: mix run

I want to do this in 1 line command.

  1. load app
  2. start "iex"
  3. do function (DribbbleGif.main)

Because, finally I want to watch file like this.

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


If you have other solution for auto build, please tell me it.

尝试:

iex -S mix run -e "DribbbleGif.main"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM