[英]Rebar3 release does not run and crash with cannot expand $ERTS_LIB_DIR in bootfile
Erlang Version = Erlang/OTP 19 Erlang版本= Erlang / OTP 19
I have created a new erlang application using rebar3 Here are the steps: 我使用rebar3创建了一个新的erlang应用程序,步骤如下:
rebar3 new app myapp
rebar3 compile
rebar3 new release myrel
cd myrel
rebar3 release
cd myrel/myapp/_build/default/rel/myapp/bin
./myapp start
I get the following error: 我收到以下错误:
init terminating in do_boot (cannot expand $ERTS_LIB_DIR in bootfile) Crash dump is being written to: erl_crash.dump...done init终止于do_boot(无法在启动文件中扩展$ ERTS_LIB_DIR)崩溃转储被写入:erl_crash.dump ... done
Can someone please check what I am missing here? 有人可以检查我在这里想念的吗? Thanks. 谢谢。
If you do something like rebar3 as prod tar
you should get a .tar.gz
file that can be expanded on the server, with bin/myapp
used to start/stop/attach. 如果您将rebar3 as prod tar
,则应该获得一个.tar.gz
文件,该文件可以在服务器上扩展,其中bin/myapp
用于启动/停止/附加。 If you do something like rebar3 release
, it'll build into _build/
, with the start/stop script being in _build/default/rel/myapp/bin/myapp
. 如果您执行rebar3 release
,它会内置到_build/
,而开始/停止脚本位于_build/default/rel/myapp/bin/myapp
。 Why are you using rebar3 new release myrel
? 为什么使用rebar3 new release myrel
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.