[erlang-questions] recommended ways to pass config to a dep app

Max Lapshin max.lapshin@REDACTED
Fri Nov 16 15:35:55 CET 2012


application:load(stockdb),
application:set_env(stockdb, key, value),
application:start(stockdb),



On Fri, Nov 16, 2012 at 6:28 PM, AD <straightflush@REDACTED> wrote:

> Hello,
>
>  I am abstracting some code into a "library" that can be included in other
> applications.  This library requires a fair bit of config options, what is
> the recommended approach here when starting it up?
>
>  I noticed some libraries like cowboy, you pass all the configs into the
> main  start_http() method, others use include files.
>
>  Is there a preferred mechanism here when there are 20-25 config options
> for the included application?
>
> Cheers
> -AD
>
> _______________________________________________
> 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/20121116/8de4e45d/attachment.htm>


More information about the erlang-questions mailing list