I’m writing a service that consists in two separated projects, not inside an umbrella, where one project references the other as a dependency with the path key.
The referenced one runs without any problem when run isolated, but it can’t start when being used referenced by the other.
Project1 is a phoenix app, but I think this has nothing to do with the problem.
I think that the problem is that when started from the other one the config files could not be read, so it fails to start as an app.
I have this error
** (ArgumentError) could not fetch application environment :project_id for application :project2 because the application was not loaded/started. If your application depends on :project2 at runtime, make sure to load/start it or list it under :extra_applications in your mix.exs file
But it’s not helpful, the suggestion does not work.
Can I use some configuration to achieve what I want?