Cannot expand $ERTS_LIB_DIR in bootfile

纵然是瞬间 提交于 2019-12-25 08:17:11

问题


I created a release using rebar3 but I have issues running/booting the app on my remote server.

When i run the following command:

$> /home/app/releases/0.0.1# erl -boot start

I get the following error:

{"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

What am I doing wrong?


回答1:


How are you creating a release? If you do something like rebar3 as prod tar, you'll get a .tar.gz that can be expanded on the server, with bin/APP used to start/stop/attach.

If you do something like rebar3 release, it'll build into _build, with the start/stop script being in _build/default/rel/APP/bin/APP.



来源:https://stackoverflow.com/questions/41145677/cannot-expand-erts-lib-dir-in-bootfile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!