summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-05-20 11:40:33 -0400
committerGitHub <noreply@github.com>2018-05-20 11:40:33 -0400
commit1979ce39c114b6587959d917588ee1541f5f27b1 (patch)
treefe7abfa2e17291b0652355df05b37498a8c6f7d0 /priv/templates
parent5170556eaeb987b7d1e0c3b22d94ba84f6ff8a61 (diff)
parent0a0539ae2aad4f4d227927e0c205b8aef7ab9acc (diff)
Merge pull request #1790 from ferd/autostart-shell-for-apps
Auto-boot main app in OTP app project templates
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/app.template2
-rw-r--r--priv/templates/app_rebar.config7
2 files changed, 8 insertions, 1 deletions
diff --git a/priv/templates/app.template b/priv/templates/app.template
index d0bebd7..7d68b2c 100644
--- a/priv/templates/app.template
+++ b/priv/templates/app.template
@@ -6,7 +6,7 @@
{template, "app.erl", "{{name}}/src/{{name}}_app.erl"}.
{template, "sup.erl", "{{name}}/src/{{name}}_sup.erl"}.
{template, "otp_app.app.src", "{{name}}/src/{{name}}.app.src"}.
-{template, "rebar.config", "{{name}}/rebar.config"}.
+{template, "app_rebar.config", "{{name}}/rebar.config"}.
{template, "gitignore", "{{name}}/.gitignore"}.
{template, "LICENSE", "{{name}}/LICENSE"}.
{template, "README.md", "{{name}}/README.md"}.
diff --git a/priv/templates/app_rebar.config b/priv/templates/app_rebar.config
new file mode 100644
index 0000000..203ce4a
--- /dev/null
+++ b/priv/templates/app_rebar.config
@@ -0,0 +1,7 @@
+{erl_opts, [debug_info]}.
+{deps, []}.
+
+{shell, [
+ % {config, [{config, "config/sys.config"}]},
+ {apps, [{{name}}]}
+]}.