![](/img/trans.png)
[英]Rebar3 release does not run and crash with cannot expand $ERTS_LIB_DIR in bootfile
[英]Cannot expand $ERTS_LIB_DIR in bootfile
我使用rebar3创建了一个发行版,但在远程服务器上运行/启动应用程序时遇到问题。
当我运行以下命令时:
$> /home/app/releases/0.0.1# erl -boot start
我收到以下错误:
{"init terminating in do_boot",'cannot expand $ERTS_LIB_DIR in bootfile'}
init terminating in do_boot (cannot expand $ERTS_LIB_DIR in bootfile)
Crash dump is being written to: erl_crash.dump...done
我究竟做错了什么?
您如何创建发行版? 如果您将rebar3 as prod tar
, rebar3 as prod tar
获得一个.tar.gz,可以在服务器上对其进行扩展,并使用bin/APP
来启动/停止/附加。
如果您执行rebar3 release
,它会内置到_build
,开始/停止脚本位于_build/default/rel/APP/bin/APP
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.