ejabberd编译更新脚本
(金庆的专栏 2016.8)
用rebar编译ejabberd源码,然后复制编译所得beam文件到ejabberd安装目录,
调用ejabberdctl热更新。
call rebar compile skip_deps=true
REM Need write right to ejabberd dir.
copy ebin\*.beam "C:\Program Files\ejabberd-16.08\lib\ejabberd-16.08\ebin\"
echo Update ejabberd.
call "C:\Program Files\ejabberd-16.08\bin\ejabberdctl.cmd" update all