-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy pathrebar.config.script
More file actions
35 lines (33 loc) · 1.13 KB
/
rebar.config.script
File metadata and controls
35 lines (33 loc) · 1.13 KB
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
BaseApps = [kernel, stdlib, sasl,
crypto, inets, public_key, ssl,
tools, runtime_tools,
mongooseim,
{mnesia, none},
{erlang_doctor, none},
{syslogger, none},
{cpool, none},
{backoff, none},
{mysql, none},
{epgsql, none},
{eredis, none},
{cqerl, none},
{tirerl, none},
{erlcloud, none},
{amqp_client, none},
{exometer_core, none},
{exometer_report_graphite, none},
{exometer_report_statsd, none},
{prometheus, none},
{prometheus_httpd, none},
{prometheus_cowboy, none},
{bbmustache, none}
],
Apps = case os:getenv("DEVNODE") of
false -> BaseApps;
_ -> [meck | BaseApps]
end,
{relx, RelxCfg} = lists:keyfind(relx, 1, CONFIG),
{release, Desc, _Apps} = lists:keyfind(release, 1, RelxCfg),
NewReleaseCfg = {release, Desc, Apps},
NewRelxCfg = lists:keyreplace(release, 1, RelxCfg, NewReleaseCfg),
lists:keyreplace(relx, 1, CONFIG, {relx, NewRelxCfg}).