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

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