How to use different config file for different releases in umbrella project?

There are 4 apps and 3 releases in my umbrella project.

ex)

apps:

  • core
  • web
  • backoffice
  • worker

releases:

  • web
  • backoffice
  • worker

web, backoffice and worker apps depends on core.

I want to set different config for each releases. (ex. different db repo setting)
But I can’t find any way to do it in Elixir.
How can I do this?

1 Like

Can you factor out the differences into runtime configurations for each release? https://hexdocs.pm/distillery/config/runtime.html

1 Like