我在文檔中找不到它(或者,更可能的是,我錯過了它),所以我認爲這些是步驟:
- 將現有的 Erlang 應用程序(或創建一個新應用程序
rebar3 new app
)複製到<umbrella_root>/apps/
(或<umbrella_root>/libs/
- 將新應用程序添加到
relx
以下部分<umbrella_root>/rebar.config
:
{ 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}
]
}.
3. 將新應用所需的配置環境變量添加到<umbrella_root>/config/sys.config
.
4. 如果新應用使用插件,請在<umbrella_root>/apps/<new_app>/rebar.config
.