run-release
To run an LFE project that was generated with rebar3 new lfe-release
and has been compiled with rebar3 release
:
rebar3 lfe run-release COMMAND
Where COMMAND
is one of the non-interactive commands supported by the
release script:
start
stop
restart
reboot
pid
ping
Others non-interactive commands not listed may also work, but they have not been tested.
Known Issue!
If your release doesn't start
(e.g., running rebar3 lfe run-release ping
doesn't return
pong
),
this is a known issue that is being investigated in the following ticket:
https://github.com/lfe-rebar3/rebar3_lfe/issues/33
Workaround
The current workaround for a relese that doesn't start is simply to re-run
rebar3 release
and rebar3 lfe run-release start
.