[erlang-questions] Deployment rebar3

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Thu May 24 13:23:06 CEST 2018


On Mon, May 7, 2018 at 4:44 PM Guilherme Andrade <g@REDACTED> wrote:

> On 7 May 2018 at 15:03, Stefan Hellkvist <hellkvist@REDACTED> wrote:
>
>> 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).
>>
>
> rebar3 releases provide this out of the box:
>
> https://www.rebar3.org/docs/releases#dynamic-configuration
>
>
>
When it works :)

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180524/5bc460f2/attachment.htm>


More information about the erlang-questions mailing list