bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 397 forks source link

Mix.Releases.Config.Providers.Elixir and Application.get_env #646

Closed absolut777 closed 5 years ago

absolut777 commented 5 years ago

I've configured Mix.Releases.Config.Providers.Elixir, redefined some variables in custom elixir config, started an application. I see that in var/sys.config redefined variables have correct values (from custom elixir config). But if I run remote_console and get variables via Application.get_env, I see old not redefined values. Why?

Distillery 2.0.12 CentOS 7, Erlang 21.2.3, Elixir 1.8.1

absolut777 commented 5 years ago

Solved after change "{:distillery, "~> 2.0.12", runtime: false}" to "{:distillery, "~> 2.0.12", runtime: true}"