|
6 | 6 | [@@name@@,
|
7 | 7 | sasl]},
|
8 | 8 |
|
| 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 |
9 | 15 | {sys_config, "./config/sys.config"},
|
10 |
| - {vm_args, "./config/vm.args"}, |
| 16 | + {vm_args, "./config/vm.args"} |
11 | 17 |
|
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 | +]}. |
14 | 23 |
|
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} |
17 | 29 |
|
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