diff options
author | Badlop <badlop@process-one.net> | 2022-01-17 11:49:16 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-02-03 18:21:47 +0100 |
commit | adbccbe852e3d9980e531ff206bebd6b2c983fba (patch) | |
tree | 04d4b8ae5447fc1f41e87d1f152fd79b70b8e855 /rebar.config | |
parent | mod_pubsub: Unsubscribe JID on whitelist removal (diff) |
New "make relive" similar to "ejabberdctl live" without installing
Prepare with:
./autogen.sh && ./configure --with-rebar=./rebar3 && make
Or use this if you installed Elixir:
./autogen.sh && ./configure --with-rebar=mix && make
Start without installing (it recompiles when necessary):
make relive
It stores config, database and logs in _build/relive/
There's available the well-known script:
_build/relive/ejabberdctl
Please note this fails immediately:
r3:do(compile).
This crashes a few seconds later:
rebar3:run(["compile"]).
Workaround that works correctly:
ejabberd_admin:update().
Diffstat (limited to 'rebar.config')
-rw-r--r-- | rebar.config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rebar.config b/rebar.config index 0c18d9e7..c21c5a79 100644 --- a/rebar.config +++ b/rebar.config @@ -215,6 +215,12 @@ {copy, "test/ejabberd_SUITE_data/cert.pem", "etc/ejabberd/"}]}]}]}, {test, [{erl_opts, [nowarn_export_all]}]}]}. +{alias, [{relive, [{shell, "--apps ejabberd \ + --config rel/relive.config \ + --script rel/relive.escript \ + --name ejabberd@localhost"}]} +]}. + %% Local Variables: %% mode: erlang %% End: |