如何将新的 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章