What is the use case of "mix app.start --parmanent"?

I’m coding an application, which can run by mix run --no-halt.
But mix app.start --parmanent finished soon.

So I’d like to know what the purpose of “mix app.start --parmanent”.

It starts all applications in “permanent” mode. Permanent mode does not mean, that the application won’t stop, it means, that if one application crashes, all others are shut down as well. Nomenclature is a bit confusing, I agree:

  • If a permanent application terminates, all other applications and the entire Erlang node are also terminated.

http://erlang.org/doc/man/application.html#start-1

5 Likes

Thank you for your reply.
I understand now.

mix app.start works like mix run.

So it seems that I need to use mix run --no-halt if I’d like to continue the application.