<div dir="ltr">hi Xavier<div><br></div><div>the rebar2 start script template also had a section "<span class="gmail-pl-c">Use releases/VSN/sys.config if it exists otherwise use etc/app.config"</span></div><div><a href="https://github.com/rebar/rebar/blob/2429ddf7b46597222b0eaf6b79a438baafaaa96f/priv/templates/simplenode.runner#L82">https://github.com/rebar/rebar/blob/2429ddf7b46597222b0eaf6b79a438baafaaa96f/priv/templates/simplenode.runner#L82</a><br></div><div><br></div><div>Exactly as you say this is useful to package the configuration (etc dir) separately from the release (which does not contain a sys.config)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 11:13 AM, Xavier Noria <span dir="ltr"><<a href="mailto:fxn@hashref.com" target="_blank">fxn@hashref.com</a>></span> wrote:<br><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">Even more, I see distillery supports an OS environment variable SYS_CONFIG_PATH to be able to point to an arbitrary config file (whose basename can be anything). I wonder if that may be handy for production deployments in which the machine that generates the release does not have access to sensible config data.</div></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>