2013年5月9日
摘要: 有时候需要项目依赖其他的开源项目(比如lager),这时候我们回到example目录下,编辑rebar.config文件:%%-*- mode: erlang -*-{erl_opts, [{parse_transform, lager_transform}]}.{sub_dirs, ["rel"]}.{deps, [{lager, ".*", {git, "git://github.com/basho/lager.git", "master"}}]}.修改rel目录下reltools.config,为:{sys, 阅读全文
posted @ 2013-05-09 16:18 文武双全大星星 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 首先创建目录example,进入目录创建app:[admin@localhost ~]$ mkdir example[admin@localhost ~]$ cd example/[admin@localhost example]$ rebar create-app appid=example==> example (create-app)Writing src/example.app.srcWriting src/example_app.erlWriting src/example_sup.erl创建Makefile如下:all: deps compile compile: rebar 阅读全文
posted @ 2013-05-09 10:44 文武双全大星星 阅读(372) 评论(0) 推荐(0) 编辑