Umbrella project only works when started via iex

@hubertlepicki:

No, there isn’t a web frontend or anything like that. I connect via pgcli (postgres client) to my database and query the server.

@NobbZ:

Thanks, --no-halt does the trick! So even though there’s still a process running, the application exits because the first called function returns?

EDIT: After some searching, I found the answer to my question. mix run starts the application in its own beam process and after the start callback of the app is finished, the process gets terminated – and everything else that got started.
Here are some references for anyone, stumbling on this: https://stackoverflow.com/questions/30687781/how-to-run-elixir-application#answer-30688873
Basic: Missing a fundamental concept with applications, appreciate help - `mix run` not waiting

Thank you for you help!

2 Likes