[erlang-questions] application starting in releases
Mon Oct 15 22:19:35 CEST 2012
On Mon, Oct 15, 2012 at 12:57 AM, Roberto Ostinelli wrote:
> This ends up doing "application:start([compiler])" which returns an error,
> > init(3) probably ignores return value as it couldn't really know
> > what to expect. Try with -eval instead:
> > erl -boot start_sasl -eval 'application:start(compiler).'
> Oh I see. I wanted to avoid `eval` for some reason, but this works
> perfectly. Thank you.
> > BTW I vaguely recall rebar can do this for you somehow?
> No idea. Tuncer? :)
This is most likely referring to the release support and
> > > Am I actually supposed to use application:start/1 in myapp
> > > anyways?
> > No, it's quite rare to do that, the only use case I've seen is
> > bringing protocol stacks up and down manually depending on
> > availability of some backend connections (well, lazy man's way to
> > do that anyway).
> Ok this is exactly what I thought.
> Again, thank you,
More information about the erlang-questions