Skip to content

Commit

Permalink
Merge pull request #1790 from ferd/autostart-shell-for-apps
Browse files Browse the repository at this point in the history
Auto-boot main app in OTP app project templates
  • Loading branch information
ferd authored May 20, 2018
2 parents 5170556 + 0a0539a commit 1979ce3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion priv/templates/app.template
Original file line number Diff line number Diff line change
Expand Up @@ -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"}.
7 changes: 7 additions & 0 deletions priv/templates/app_rebar.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{erl_opts, [debug_info]}.
{deps, []}.

{shell, [
% {config, [{config, "config/sys.config"}]},
{apps, [{{name}}]}
]}.

0 comments on commit 1979ce3

Please sign in to comment.