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

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -