From 22b8bca944100e0f886f3369a26d8783e09a29fa Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Thu, 18 Feb 2021 15:23:38 +0300 Subject: [PATCH] Update relx config w/ minimal mode --- rebar.config | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/rebar.config b/rebar.config index de5883e..5814dcd 100644 --- a/rebar.config +++ b/rebar.config @@ -137,27 +137,6 @@ %% Tests {cover_enabled, true}. -%% Relx configuration -{relx, [ - {release, {bouncer, "0.1.0"}, [ - % tools for introspection - {recon, load}, - % debugger - {runtime_tools, load}, - % profiler - {tools, load}, - % logger formatter - {logger_logstash_formatter, load}, - how_are_you, - bouncer - ]}, - {sys_config, "./config/sys.config"}, - {vm_args, "./config/vm.args"}, - {dev_mode, true}, - {include_erts, false}, - {extended_start_script, true} -]}. - %% Dialyzer static analyzing {dialyzer, [ {warnings, [ @@ -172,10 +151,24 @@ {profiles, [ {prod, [ + %% Relx configuration {relx, [ - {dev_mode, false}, - {include_erts, true}, - {overlay, []} + {release, {bouncer, "0.1.0"}, [ + % tools for introspection + {recon, load}, + % debugger + {runtime_tools, load}, + % profiler + {tools, load}, + % logger formatter + {logger_logstash_formatter, load}, + how_are_you, + bouncer + ]}, + {sys_config, "./config/sys.config"}, + {vm_args, "./config/vm.args"}, + {mode, minimal}, + {extended_start_script, true} ]} ]},