<p dir="ltr">Why not store the configuration in the environment? Switching environment config would be as simple as changing the systems environment variables.</p>
<div class="gmail_quote">On Jun 2, 2014 11:51 PM, "Richard A. O'Keefe" <<a href="mailto:ok@cs.otago.ac.nz">ok@cs.otago.ac.nz</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 30/05/2014, at 11:09 PM, Roger Lipscombe wrote:<br>
<br>
> You can provide different config files by using the -config switch. We<br>
> use this to have a different configuration for each environment.<br>
> Unfortunately, this leads to a lot of duplication in the config files.<br>
<br>
The question is what the cost of that duplication is.<br>
If someone has to *maintain* duplicate files, that's<br>
a problem.<br>
<br>
If the duplicate files are automatically generated<br>
from a single master, so that only a single file has<br>
to be humanly maintained, that's not much of a problem.<br>
<br>
Since the configuration files are straightforward<br>
data structures, how hard would it be to have a module<br>
that generates all the variants?<br>
<br>
_______________________________________________<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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>