Troubleshooting Release Errors

Hey guys,

I created a release with Distillery which gives me errors which do not exist in non-release versions of prod, dev or test.

error: shutdown: failed to start child: Xxx.Repo

configuration for Xxx.Repo not specified in :xxx environment
  1. Perhaps I need to ensure Repo starts first.

  2. We do have a slightly odd Phoenix setup, where Ecto repos are found in the same App as the rest of the code (the release used to work OK before we did this…)

  3. I have set “server: true” under AllIAskWeb.Endpoint configuration, so that seems OK

I am sure I have done something dumb.

Any ideas or help?

Could you provide some code for how you start the repo? And maybe config for it for the environment that raises this error?