diff options
-rw-r--r-- | priv/templates/release.template | 2 | ||||
-rw-r--r-- | priv/templates/relx.config.dtl | 12 | ||||
-rw-r--r-- | priv/templates/relx_rebar.config.dtl | 20 |
3 files changed, 21 insertions, 13 deletions
diff --git a/priv/templates/release.template b/priv/templates/release.template index eb8e6ab..0fe7918 100644 --- a/priv/templates/release.template +++ b/priv/templates/release.template @@ -6,7 +6,7 @@ {template, "app.erl.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}. {template, "sup.erl.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}. {template, "otp_app.app.src.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}.app.src"}. -{template, "rebar.config.dtl", "{{name}}/rebar.config"}. +{template, "relx_rebar.config.dtl", "{{name}}/rebar.config"}. {template, "relx.config.dtl", "{{name}}/relx.config"}. {template, "sys.config.dtl", "{{name}}/config/sys.config"}. {template, "vm.args.dtl", "{{name}}/config/vm.args"}. diff --git a/priv/templates/relx.config.dtl b/priv/templates/relx.config.dtl deleted file mode 100644 index 7b08f97..0000000 --- a/priv/templates/relx.config.dtl +++ /dev/null @@ -1,12 +0,0 @@ -%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*- -{release, {'{{name}}', "0.1.0"}, - [{{name}}, - sasl]}. - -{sys_config, "./config/sys.config"}. -{vm_args, "./config/vm.args"}. - -{dev_mode, true}. -{include_erts, false}. - -{extended_start_script, true}. diff --git a/priv/templates/relx_rebar.config.dtl b/priv/templates/relx_rebar.config.dtl new file mode 100644 index 0000000..53ad24a --- /dev/null +++ b/priv/templates/relx_rebar.config.dtl @@ -0,0 +1,20 @@ +{erl_opts, [debug_info]}. +{deps, []}. + +{relx, [{release, {'{{name}}', "0.1.0"}, + [{{name}}, + sasl]}, + + {sys_config, "./config/sys.config"}, + {vm_args, "./config/vm.args"}, + + {dev_mode, true}, + {include_erts, false}, + + {extended_start_script, true}] +}. + +{profiles, [{prod, [{relx, [{dev_mode, true}, + {include_erts, false},]}] + }] +}. |