rebar3 erlang 项目管理工具

rebar3 是erlang 提供的构建,测试以及发布工具

安装

  • 下载
wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3
  • 安装
./rebar3 local install

之后配置环境变量

使用

  • 提供的命令
as                Higher order provider for running multiple tasks in a sequence as a certain profiles.
clean             Remove compiled beam files from apps.
compile           Compile apps .app.src and .erl files.
cover             Perform coverage analysis.
ct                Run Common Tests.
deps              List dependencies
dialyzer          Run the Dialyzer analyzer on the project.
do                Higher order provider for running multiple tasks in a sequence.
edoc              Generate documentation using edoc.
escriptize        Generate escript archive.
eunit             Run EUnit Tests.
get-deps          Fetch dependencies.
help              Display a list of tasks or help for a given task or subtask.
new               Create new project from templates.
path              Print paths to build dirs in current profile.
pkgs              List information for a package.
release           Build release of project.
relup             Create relup of releases.
report            Provide a crash report to be sent to the rebar3 issues page.
shell             Run shell with project apps and deps in path.
tar               Tar archive of release built of project.
tree              Print dependency tree.
unlock            Unlock dependencies.
update            Update package index.
upgrade           Upgrade dependencies.
version           Print version for rebar and current Erlang.
xref              Run cross reference analysis.
  • 创建一个简单的erlang 项目
rebar3 new release mydemo

效果

项目结构

 
├── LICENSE.md
├── README.md
├── apps
└── mydemo
└── src
├── mydemo.app.src
├── mydemo_app.erl
└── mydemo_sup.erl
├── config
├── sys.config
└── vm.args
├── rebar.config
└── rebar.lock
  • 编译

  • release

说明

rebar3 是erlang 应用开发的首选工具,官方文档也比较全,可以仔细看看

参考资料

https://github.com/erlang/rebar3
http://rebar3.org/
https://rebar3.org/docs/deployment/releases/

posted on   荣锋亮  阅读(160)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2020-12-22 jinjava一个不错的java jinja2 模版引擎
2020-12-22 pmm2.12.0 运行
2020-12-22 pmm-agent 源码编译
2020-12-22 pmm 2.13 技术预览版支持报警
2020-12-22 pmm 2.12.0 新架构介绍
2020-12-22 Qovery/engine 多云部署引擎
2018-12-22 vernemq 集群 docker-compose 搭建简单试用

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示