use Config in generated config when available
authorrinpatch <rinpatch@sdf.org>
Fri, 21 Jun 2019 18:56:49 +0000 (21:56 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 21 Jun 2019 19:01:59 +0000 (22:01 +0300)
commit960d6b54e8575b828d34fcf0b69e634dc4d33fe0
treed6f53b4b52e1064eeddcb20827b5f82be84087f6
parent6906db512dee7aa041b98c25312dabafd43ad932
use Config in generated config when available

Mix.Config is deprecated and does not work on OTP releases. However
we can't fully switch to Config because it is not present in
Elixir < 1.9. I tried to evaluate if Config is available at runtime,
but for some weird reason OTP releases crash if I do that.
priv/templates/sample_config.eex