[erlang-questions] Conditional configuration?

Tue Jun 3 05:55:43 CEST 2014

Why not store the configuration in the environment? Switching environment
config would be as simple as changing the systems environment variables.
On Jun 2, 2014 11:51 PM, "Richard A. O'Keefe" <ok@REDACTED> wrote:

> On 30/05/2014, at 11:09 PM, Roger Lipscombe wrote:
> > You can provide different config files by using the -config switch. We
> > use this to have a different configuration for each environment.
> > Unfortunately, this leads to a lot of duplication in the config files.
> The question is what the cost of that duplication is.
> If someone has to *maintain* duplicate files, that's
> a problem.
> If the duplicate files are automatically generated
> from a single master, so that only a single file has
> to be humanly maintained, that's not much of a problem.
> Since the configuration files are straightforward
> data structures, how hard would it be to have a module
> that generates all the variants?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140602/3419f487/attachment.htm>

More information about the erlang-questions mailing list