I’ve got an umbrella project with 2 apps in it: an app with business logic and an app for db access (ecto).
In the business logic app, I specified a dependency on the db app like so: {:db, in_umbrella: true}.
The business app uses the db app to insert some data on startup.
The problem is that the database isn’t modified…
… unless I start the umbrella project via iex -S mix.
I don’t get any error messages and my code in the db app is called properly (confirmed via log messages).
So I suspect my (trivial) code is working fine and it’s some startup timing problem where the db app isn’t started before the business app.
Do I need to declare anything else to make the dependency on the :db app working properly?
P.S. I even stopped my database server (postgres) and ran the project to see if I even get some error messages – which I do not get unless I launch everything via iex.