mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
eb975268f4
How to use: - Compile ejabberd with Mix - Start ejabberd with "make relive" - Edit some ejabberd source code file - Save the file, and ExSync will compile and reload it automatically ExSync depends on FileSystem library, which requires inotify-tools, see https://github.com/falood/file_system#system-support References: https://hex.pm/packages/exsync https://github.com/falood/exsync
16 lines
418 B
Elixir
16 lines
418 B
Elixir
import Config
|
|
|
|
rootdefault = case System.get_env("RELIVE", "false") do
|
|
"true" -> "_build/relive"
|
|
"false" -> ""
|
|
end
|
|
|
|
rootpath = System.get_env("RELEASE_ROOT", rootdefault)
|
|
config :ejabberd,
|
|
file: Path.join(rootpath, "conf/ejabberd.yml"),
|
|
log_path: Path.join(rootpath, "logs/ejabberd.log")
|
|
config :mnesia,
|
|
dir: Path.join(rootpath, "database/")
|
|
config :exsync,
|
|
reload_callback: {:ejabberd_admin, :update, []}
|