File: runtime.exs

package info (click to toggle)
ejabberd 26.02-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,396 kB
  • sloc: erlang: 122,646; sh: 4,258; sql: 3,633; perl: 869; makefile: 559; javascript: 216; python: 48
file content (15 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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, []}