[erlang-questions] How to solve the issue with Configuration files?

t ty tty.erlang@REDACTED
Mon Jan 12 04:50:32 CET 2009

As a general rule I dislike env variables. They get forgotten,
mis-configured, isn't inherited in a child process (typically in cron,
sometime screen), abused ....

IMHO Option 1 is cleaner and saner. Explicit copying is just something
your install script does as part of the upgrade.


On Sun, Jan 11, 2009 at 8:33 AM, Mazen Harake
<mazen.harake@REDACTED> wrote:
> Dear List,
> During the countless times I've done releasehandling I always end up
> thinking about the problem with how to "ship" configuration.
> Option1:
> All configuration files are specific for each application and reside in
> e.g. priv directory. Benefit is that it then gets included when packing
> a release however it won't survive a release upgrade unless the files
> are explicitly copied to the new location.
> Option2:
> An env variable which tells where a configuration folder is and that is
> used in your application (or if you don't care about dependencies, heh,
> then a lib which provides that directory or similar). Then each
> application use their own files in that dir. Benefit here is that
> configuration survives release change but doesn't get packed with the
> release. Also this is a b**h to handle, anyone that version control
> their configuration will have a nightmare if you want to manually handle
> the configuration.
> So the question is; what is the best way to handle configurations? Say
> you have 20 xml files which various applications in your release use...
> where to put them and how to maintain them? If you can, please share how
> you handle them...
> /Mazen
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list