【发布时间】:2020-12-11 03:29:41
【问题描述】:
我在文档中找不到它(或者,更可能的是,我错过了它),所以我认为这些是步骤:
-
将现有的 Erlang 应用程序(或使用
rebar3 new app创建一个新应用程序)复制到<umbrella_root>/apps/(或<umbrella_root>/libs/)中 -
将新应用添加到
<umbrella_root>/rebar.config中的relx部分:{ relx , [ {release , { your_big_project_name, "0.1.0" } , [ your_big_project_name_or_smth_else , the_newly_copied_app % , sasl ] } , {sys_config, "./config/sys.config"} , {vm_args, "./config/vm.args"} , {dev_mode, true} , {include_erts, false} , {extended_start_script, true} ] }. -
将新应用所需的配置环境变量添加到
<umbrella_root>/config/sys.config。 -
如果新应用使用插件,请在
<umbrella_root>/apps/<new_app>/rebar.config中配置。
我接近了吗?如果是,这是否意味着伞形应用程序可以嵌套? (这应该是一个单独的问题)。
【问题讨论】: