我收到错误:'EXIT',{undef,[{compile,forms,...启动rebar3发布时生成的应用程序

时间:2016-07-23 04:46:46

标签: erlang rebar3

应用程序可以正常运行erlang shell -erl,但得到错误:

{"Kernel pid terminated",application_controller,"
{application_start_failure,gateway,{bad_return,{{gateway_app,start,[normal,[]]},
{'EXIT',{undef,[{compile,forms, ...

从_build / default / rel / xmxx / bin / xmxx启动时。

rebar.config是

{erl_opts, 
    [debug_info,
        {i, "include"},
        {outdir, "./ebin"},
        {src_dirs, ["src", "../../src"]}]}.
{deps, []}.

{relx, [{release, {xmxx, "0.0.1"}, [gateway, kernel, stdlib, sasl]},

    {sys_config, "./config/sys.config"},
    {vm_args, "./config/vm.args"},

    {dev_mode, true},
    {include_erts, false},
    {extended_start_script, true}]
}.

{profiles, 
    [{prod, 
        [{relx, [
            {dev_mode, false},
            {include_erts, true},
            {include_src, false}]
        }]
    }]
}.

gateway.app.src是

{application, gateway, [
    {description, "This is server gateway."},
    {vsn, "0.0.1"},
    {registered, [gateway_sup]},
    {mod, {gateway_app, []}},
    {applications, [kernel, crypto, stdlib, sasl]},
    {env,[]},
    {modules, [xmxx_run]},
    {maintainers, []},
    {licenses, []},
    {links, []}
]}.

任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:1)

它抱怨compile:forms未定义,可能是因为compilecompiler应用程序中,您不会包含该内容。