summaryrefslogtreecommitdiff
path: root/config/runtime.exs
blob: b4e6dc5f17217d28dad4def14a90240cf78b94b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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/')