Hi all,

when dealing with umbrella applications, you may need for some of the apps 
special env, for example a "e2e_test.exs" which is relevant for the web 
app, but not for all apps within the umbrella.
In my case, I've an subapp, which has a special configuration for the 
"test" env. But because I had to uncomment import_config "#{Mix.env()}.exs" 
line, I also have to provide all the other possible config files for all 
possible env within my umbrella. I ended up by providing empty config 
files, to make it not fail.

Proposal:

import_config should not fail if config cannot be discovered, or provide an 
optional-flag, like `import_config("#{Mix.env()}.exs", optional: true)` so 
the config directory will stay clean only with configs you need for that 
particular application.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/f5675fd4-4a8e-4684-9b4d-a6b4b5efcd95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to