How to automatically launch needed services and apps?

六月ゝ 毕业季﹏ 提交于 2019-12-21 19:57:35

问题


I am writing my first erlang application and I want to do things the way they should be done in the erlang ecosystem. My app depends on ssl, inets services and log4erl application to be already started and as for now I start them manually in the erlang shell. After that I start my app's supervisor that starts other parts. The question is how should I organize things so that there would be no need to start ssl, inets and log4erl manually ?


回答1:


You should try Erlang release handling system.

Check docs here.




回答2:


Also see answers to this question for the explanation and some pointers to tools that make creating the releases easier. Extract below:

There are a few third-party tools that make creating releases easier, like rebar, relx, mad, erlang.mk, or builderl (no documentation for the last one yet, some example usages in those applications: humbundee, builderl_sample_project_sc).



来源:https://stackoverflow.com/questions/2252421/how-to-automatically-launch-needed-services-and-apps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!