Skip to content

Commit b7b33fb

Browse files
committed
add comments to release section of rebar.config template
1 parent 7ccbc0b commit b7b33fb

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

priv/templates/relx_rebar.config

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,28 @@
66
[@@name@@,
77
sasl]},
88

9+
{mode, dev},
10+
11+
%% automatically picked up if the files
12+
%% exist but can be set manually, which
13+
%% is required if the names aren't exactly
14+
%% sys.config and vm.args
915
{sys_config, "./config/sys.config"},
10-
{vm_args, "./config/vm.args"},
16+
{vm_args, "./config/vm.args"}
1117

12-
{dev_mode, true},
13-
{include_erts, false},
18+
%% the .src form of the configuration files do
19+
%% not require setting RELX_REPLACE_OS_VARS
20+
%% {sys_config_src, "./config/sys.config.src"},
21+
%% {vm_args_src, "./config/vm.args.src"}
22+
]}.
1423

15-
{extended_start_script, true}]
16-
}.
24+
{profiles, [{prod, [{relx,
25+
[%% prod is the default mode when prod
26+
%% profile is used, so does not have
27+
%% to be explicitly included like this
28+
{mode, prod}
1729

18-
{profiles, [{prod, [{relx, [{dev_mode, false},
19-
{include_erts, true}]}]
20-
}]
21-
}.
30+
%% use minimal mode to exclude ERTS
31+
%% {mode, minimal}
32+
]
33+
}]}]}.

0 commit comments

Comments
 (0)