[erlang-questions] Conditional configuration?

Richard A. O'Keefe ok@REDACTED
Tue Jun 3 05:50:40 CEST 2014


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?




More information about the erlang-questions mailing list