<div dir="ltr">On Mon, May 7, 2018 at 4:44 PM Guilherme Andrade <<a href="mailto:g@gandrade.net">g@gandrade.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 May 2018 at 15:03, Stefan Hellkvist <span dir="ltr"><<a href="mailto:hellkvist@gmail.com" target="_blank">hellkvist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">What's "best" is very much depending on who you ask, but, for starters you may consider wrapping your configuration with something that allows you to override config variables with environment variables (see example below).<br clear="all"></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>rebar3 releases provide this out of the box:<br><br><a href="https://www.rebar3.org/docs/releases#dynamic-configuration" target="_blank">https://www.rebar3.org/docs/releases#dynamic-configuration</a><br></div><div> </div></div></div></div><div dir="ltr"><div class="gmail_extra"><br></div></div></blockquote><br></div><div class="gmail_quote">When it works :)<br><br></div><div class="gmail_quote">If you use it, copy `sys.config` to `sys.config.orig` as well and deliver this to the machine. That way, the script won't try to save `sys.config.orig` if it is not present. This makes your dynamic configuration more static and can avoid some situations where the expanded `sys.config` is being copied into `sys.config.orig`. This then removes the dynamic configuration altogether.<br><br><br><br></div></div>