[英]Exception while generate a release in erlang cowboy using rebar?
我正在創建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 Cowboy gen_server聊天應用程序。
如該問題所述, appmon
應用程序已在Erlang / OTP 17.0中刪除。 只需在reltool.config
文件中刪除對其的所有引用即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.