如何将新的 Erlang 应用程序添加到 Rebar3 umbrella 项目?

我在文档中找不到它(或者,更可能的是,我错过了它),所以我认为这些是步骤:

  1. 将现有的 Erlang 应用程序(或创建一个新应用程序 rebar3 new app )复制到 <umbrella_root>/apps/ (或 <umbrella_root>/libs/
  2. 将新应用程序添加到 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 .

转载自: https://stackoverflow.com/questions/63528034/how-to-add-new-erlang-application-to-a-rebar3-umbrella-project

猜你喜欢

转载自blog.csdn.net/qq_25231683/article/details/129085763