On Mon, Nov 26, 2012 at 5:02 PM, Piero Ottuzzi <
ott...@gmail.com> wrote:
>
> With config embedded you have:
> 1) only 1 file to copy on deployment servers (the fat-jar)
> 2) config files in same project/versioning of the whole project
> 3) config file(s) always aligned with the jar requirements as per point 2)
> 4) you can embed more config files (devel/QA/prod) and select the right one
> at runtime.
Aside from the points made by Ryan and Coda, which I personally agree
with, you might also be able do your configuration programatically by
simply not creating any configuration YAML files at all - but rather
write a DW configuration class that provides defaults for all values
and/or just providers getters for configuration values and in those
getters apply all the black magic you would need to determine whether
or not to return a dev, qa or production value.
On a related note:
http://www.12factor.net/config
/mårten.