Re: [elixir-core:6979] Application.get_env/2 support for {:system, "VARIABLE"}

2017-03-01 Thread Almas Sapargali
You can take a look at https://github.com/bitwalker/conform , it’s like config.exs, but captures env variables during application start, unlike config.exs which captures during compilation. > On Mar 2, 2017, at 7:26 AM, Christian Nelson wrote: > > The ve

Re: [elixir-core:6979] Application.get_env/2 support for {:system, "VARIABLE"}

2017-03-01 Thread Christian Nelson
The version of this issue I ran into today is with a 3rd party plug, https://github.com/remiprev/plug_canonical_host. I wanted to do something like this: defmodule HalfDome.Endpoint do use Phoenix.Endpoint, otp_app: :half_dome plug PlugCanonicalHost, canonical_host: System.get_env("CANONICA

Re: [elixir-core:6977] Application.get_env/2 support for {:system, "VARIABLE"}

2017-03-01 Thread Almas Sapargali
Hello, I'd vote for this change too, actually found that and other discussion, when I was going to make exact same proposal, and just did a quick search first. Then only notable stopper I've seen is that values would be strong, whilist user may expect int/bool etc. I think we could handle this c