Right now we’re using a mix of Confex and runtime.exs. It feels like we’re using two tools for the same job and we’re wanting to pick one or the other.
The nice thing about Confex is that you still have dev.exs
, test.exs
, and prod.exs
. With runtime.exs we have a few cases of checks like if config_env() != :test do
which feels a little less clean.
The nice thing about runtime.exs is that it’s built into Elixir and doesn’t require another dependency. I also read in this other post that “the community didn’t adopt Confex”. But we’ve used it at my last two jobs and it works great!
So I guess I’m curious what the rest of the community would recommend here. I definitely don’t think we want to be doing this two different ways like we are now.