-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar3_template_partisan_rebar.config.tpl
39 lines (31 loc) · 1.2 KB
/
rebar3_template_partisan_rebar.config.tpl
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
{erl_opts, [debug_info, {parse_transform, lager_transform}]}.
{deps, [
lager,
{cuttlefish, "2.0.12"},
{partisan, "3.0.0"}
]}.
{relx, [{release, { {{ name }} , "0.1.0"},
[{{ name }},
cuttlefish,
sasl]},
{dev_mode, true},
{include_erts, false},
{overlay_vars, "config/vars.config"},
{overlay, [
{mkdir, "etc"},
{mkdir, "bin"},
{template, "./config/{{name}}.schema", "share/schema/21-{{name}}.schema"},
{template, "./config/admin_bin", "bin/{{ name }}-admin"},
{template, "./config/advanced.config", "etc/advanced.config"}
]}
]}.
{plugins, [rebar3_run]}.
{project_plugins, [{rebar3_cuttlefish, "0.16.0"}]}.
{profiles, [
{prod, [{relx, [{dev_mode, false}, {include_erts, true}]}]},
{dev1, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev1.config"]}]}]},
{dev2, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev2.config"]}]}]},
{dev3, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev3.config"]}]}]}
]}.
{overrides, [{override, cuttlefish,
[{escript_emu_args, "%%! -escript main cuttlefish_escript +S 1 +A 0\n"}]}]}.