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