将Erlang OTP应用程序与其他依赖关系组合到单个单元应用程序中

编程入门 行业动态 更新时间:2024-10-24 12:27:29
本文介绍了将Erlang OTP应用程序与其他依赖关系组合到单个单元应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将已创建的erlang OTP应用程序与其依赖关系集成到一个单元中,以便在单元启动时,所有内容(进程)都将在幕后开始。

How to integrate an already created erlang OTP application with its dependencies into a single unit so that when the unit is started everything(processes) get started behind the scene?

推荐答案

您在 .app中指定其他应用程序您的应用程序取决于,例如此示例。然后,使用 reltool:create_target / 2 ,像这个例子。该功能将发布的定义视为参数,如在这个文件。当Erlang VM启动发行版时,它以正确的顺序启动所有应用程序。

You specify in the .app file which other applications your application depends on, like in this example. Then you build a release using reltool:create_target/2 like in this example. That function takes the definition of a release as a parameter which looks something like in this file. When Erlang VM boots the release it starts all the applications in the correct order.

有几个第三方工具可以使创建发布更容易,如 rebar , relx ,疯狂, erlang.mk 或 builderl (最后没有文档一个尚未被我之前指出的应用程序使用。

There are a few third-party tools that make creating releases easier, like rebar, relx, mad, erlang.mk, or builderl (no documentation in the last one yet, used by the application that I pointed out earlier).

更多推荐

将Erlang OTP应用程序与其他依赖关系组合到单个单元应用程序中

本文发布于:2023-11-15 16:35:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596143.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   组合   单元   关系   与其他

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!