Run code at startup of an Erlang Application -
i run code @ startup of erlang application. is's connect database , initialise things. how can this?
you can call desired functions start/2
function of application's entry module (which implements -behaviour(application)
in , specified in *.app
or *.app.src
if use rebar). after create release, start/2
function executed when starting application.
more information making release can found here (assuming rebar
used).
Comments
Post a Comment