ソースを参照

Merge pull request #1790 from ferd/autostart-shell-for-apps

Auto-boot main app in OTP app project templates
pull/1794/head
Fred Hebert 7年前
committed by GitHub
コミット
1979ce39c1
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更8行の追加1行の削除
  1. +1
    -1
      priv/templates/app.template
  2. +7
    -0
      priv/templates/app_rebar.config

+ 1
- 1
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"}.

+ 7
- 0
priv/templates/app_rebar.config ファイルの表示

@ -0,0 +1,7 @@
{erl_opts, [debug_info]}.
{deps, []}.
{shell, [
% {config, [{config, "config/sys.config"}]},
{apps, [{{name}}]}
]}.

読み込み中…
キャンセル
保存