【问题标题】:Exception while generate a release in erlang cowboy using rebar?使用钢筋在erlang牛仔中生成发布时出现异常?
【发布时间】:2014-08-12 11:08:39
【问题描述】:

我正在创建 Erlang Cowboy gen 服务器聊天应用程序,为此我关注了 https://github.com/hcs42/cowboy_tutorial_webchat 链接。 我正在使用 Erlang/otp 17,但是当我运行“./rebar generate”时,它会显示以下错误。

ERROR: generate failed while processing /Users/govind/src/cowboy_chat/rel: {'EXIT',{{badmatch,{error,"appmon: Missing application directory."}},
         [{rebar_reltool,generate,2,[]},
          {rebar_core,run_modules,4,[]},
          {rebar_core,execute,5,[]},
          {rebar_core,process_dir0,6,[]},
          {rebar_core,process_dir,4,[]},
          {rebar_core,process_each,5,[]},
          {rebar_core,process_dir0,6,[]},
          {rebar_core,process_dir,4,[]}]}}

reltool.config 文件

{sys, [
       {lib_dirs, ["../apps", "../deps"]},
       {erts, [{mod_cond, derived}, {app_file, strip}]},
       {app_file, strip},
       {rel, "chat", "1",
        [
         kernel,
         stdlib,
         sasl,
         runtime_tools,
         crypto,
         mimetypes,
         ranch,
         cowboy,
         chat
        ]},
       {rel, "start_clean", "",
        [
         kernel,
         stdlib
        ]},
       {boot_rel, "chat"},
       {profile, embedded},
       {incl_cond, exclude},
       {excl_archive_filters, [".*"]}, %% Do not archive built libs
       {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                           "^erts.*/(doc|info|include|lib|man|src)"]},
       {excl_app_filters, ["\.gitignore"]},
       {app, sasl,   [{incl_cond, include}]},
       {app, stdlib, [{incl_cond, include}]},
       {app, kernel, [{incl_cond, include}]},
       {app, gs, [{incl_cond, include}]},
       {app, runtime_tools, [{incl_cond, include}]},
       {app, appmon, [{incl_cond, include}]},
       {app, crypto, [{incl_cond, include}]},
       {app, mimetypes, [{incl_cond, include}]},
       {app, ranch, [{incl_cond, include}]},
       {app, cowboy, [{incl_cond, include}]},
       {app, chat, [{incl_cond, include}]}
      ]}.

{target_dir, "chat"}.

{overlay, [
           {mkdir, "log/sasl"},
           {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
           {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
           {copy, "files/chat", "bin/chat"},
           {copy, "files/chat.cmd", "bin/chat.cmd"},
           {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
           {copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"},
           {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
           {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
          ]}.

如何解决这个错误? 如果您知道创建 Erlang 牛仔 gen_server 聊天应用程序的链接比建议的更好。

【问题讨论】:

    标签: websocket erlang cowboy


    【解决方案1】:

    this question 中所述,appmon 应用程序已在 Erlang/OTP 17.0 中删除。只需删除您的 reltool.config 文件中对它的所有引用即可。

    【讨论】:

      猜你喜欢
      • 2012-06-26
      • 2023-04-01
      • 2012-04-28
      • 2018-03-23
      • 2014-04-01
      • 2019-05-09
      • 2012-11-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多