Hello,
About the section on the README:
WARNING: This isn't the Elixir way.
Elixir has an excellent configuration system and this dotenv implementation has a serious limitation in that it isn't available at compile time. It fits very poorly into a typical deployment setup using exrm or similar. Configuration management should be built around Elixir's existing system, not environment variables.
I would say it's discouraging people from using this library and using environment variables in general while they are the recommended way in 12factor (https://12factor.net/config) and a popular choice for docker-based applications.
Also, about:
Elixir has an excellent configuration system and this dotenv implementation has a serious limitation in that it isn't available at compile time.
Distillery 2.0 has been released and they added options for handling runtime configuration: https://hexdocs.pm/distillery/config/runtime.html
I would like to clarify I'm not saying env variables are the new "Elixir way". I think hardcoding config in different per-environment files might be a suitable choice for some people, but definitely env variables are also used in the elixir community.
Thanks in advance!
Hello,
About the section on the README:
I would say it's discouraging people from using this library and using environment variables in general while they are the recommended way in 12factor (https://12factor.net/config) and a popular choice for docker-based applications.
Also, about:
Distillery 2.0 has been released and they added options for handling runtime configuration: https://hexdocs.pm/distillery/config/runtime.html
I would like to clarify I'm not saying env variables are the new "Elixir way". I think hardcoding config in different per-environment files might be a suitable choice for some people, but definitely env variables are also used in the elixir community.
Thanks in advance!