-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
152 lines (131 loc) · 3.45 KB
/
rebar.config
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{erl_opts, [
warn_unused_vars
,warn_export_all
,warn_shadow_vars
,warn_unused_import
,warn_unused_function
,warn_bif_clash
,warn_unused_record
,warn_deprecated_function
,warn_obsolete_guard
,strict_validation
,warn_export_vars
,warn_exported_vars
,warn_missing_spec
,warn_untyped_record
,debug_info
,{parse_transform, lager_transform}
%% ,warn_untyped_record % 有untyped时报warn
]}.
{rebar_packages_cdn, "https://hexpm.upyun.com"}.
{deps, [
{entop, {git, "https://github.com/mazenharake/entop.git", {tag, "0.4.0"}}}
,{observer_cli, {git, "https://github.com/zhongwencool/observer_cli.git", {tag, "1.3.3"}}}
,{mongodb, {git, "https://github.com/comtihon/mongodb-erlang.git", {tag, "v3.2.0"}}}
,{lager, {git, "https://github.com/erlang-lager/lager.git", {tag, "3.6.4"}}}
,{eredis_pool, {git, "https://github.com/hiroeorz/eredis_pool.git", {branch, "master"}}}
,{brod, {git, "https://github.com/klarna/brod.git", {tag, "3.5.2"}}}
,{worker_pool, {git, "https://github.com/inaka/worker_pool.git", {tag, "3.1.1"}}}
,{cowboy, {git, "https://github.com/ninenines/cowboy.git", {tag, "2.4.0"}}}
,{emqttc, {git, "https://github.com/emqtt/emqttc.git", {branch, "master"}}}
,{clique, {git, "https://github.com/basho/clique.git", {tag, "0.3.10"}}}
,{reloader, {git, "https://github.com/newforks/reloader.git", {branch, "master"}}}
%% ,reloader
% 依赖
,{goldrush, {git, "https://github.com/DeadZen/goldrush.git", {tag, "0.1.9"}}}
,{kafka_protocol, {git, "https://github.com/klarna/kafka_protocol.git", {tag, "1.1.2"}}}
,{snappyer, {git, "https://github.com/zmstone/snappyer.git", {tag, "1.2.1"}}}
,{supervisor3, {git, "https://github.com/klarna/supervisor3.git", {tag, "1.1.5"}}}
% 监控相关
,{eper, {git, "https://github.com/massemanet/eper.git", {branch, "master"}}}
,{recon, {git, "https://github.com/ferd/recon.git", {branch, "master"}}}
% plugin
,{luerl, {git, "https://github.com/rvirding/luerl.git", {tag, "v0.3"}}}
%% ,{erlang_js, {git, "https://github.com/basho/erlang_js.git", {tag, "1.4.0"}}}
,{esockd, {git, "https://github.com/emqx/esockd.git", {tag, "v5.4.2"}}}
]}.
{plugins, [
{ pc, {git, "https://github.com/blt/port_compiler.git", {tag, "1.6.0"}}}
]}.
{post_hooks, [
% {compile, "./relx"} % 每次调用 rebar compile 时,都会生成 release
]}.
{escript_main_app, demo_clique_cli}.
{relx, [
{release,
{ demo_erlang, "0.1.2" },
[
cowboy,
lager,
demo_erlang,
reloader,
sasl
]
},
{release,
{ demo_lager, "0.0.3" },
[
observer_cli,
lager,
demo_lager,
reloader,
sasl
]
},
{release,
{ demo_top, "0.0.1" },
[
demo_top,
reloader,
recon,
sasl
]
},
{release,
{ demo_mqtt, "0.0.1" },
[
demo_mqtt,
emqttc,
reloader,
sasl
]
},
{release,
{ demo_luerl, "0.0.1" },
[
demo_luerl,
luerl,
reloader,
sasl
]
},
{overlay, [
{copy, "luas", "./"}
]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, false},
{include_erts, true},
{extended_start_script, true}
]}.
{profiles, [
{prod, [{relx, [
{dev_mode, false},
{include_erts, true}
]}]},
{cowboy, [{relx, [
{release,
{ demo_erlang, "0.1.0" },
[
cowboy,
demo_erlang,
sasl
]
},
{dev_mode, false}
]}]},
{lager, [{relx, [
{dev_mode, false}
]}]}
]
}.