[erlang-questions] included_application vs. application vs. ensure_started()
Fri May 4 19:02:15 CEST 2007
for having all the control and configuration at the same place i do in myapp
On 5/4/07, Robert Raschke <rrerlang@REDACTED> wrote:
> I'm looking into creating myself a release of a little Erlang program.
> This uses Yaws to expose a web interface. What are the
> recommendations on how to assemble the applications? Also what are
> the tradeoffs between these three approaches?
> 1. Use completely separate applications for yaws and myapp and have
> myapp call something like myapp:ensure_yaws_started/0 (which
> starts and configure yaws if needed) when it starts.
> 2. Use the applications entry in the myapp.app file to list yaws and
> that "just" call yaws_api:setconf/2 in myapp.
> 3. Use the included_applications in the myapp.app file to list yaws
> and then call yaws:start_embedded/3 inside myapp_supervisor.
> Thanks for any advice,
> r dot raschke at tombob dot com
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions