summaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/runtime.exs b/config/runtime.exs
new file mode 100644
index 00000000..050eae8b
--- /dev/null
+++ b/config/runtime.exs
@@ -0,0 +1,12 @@
+import Config
+
+rootpath = System.get_env("RELEASE_ROOT", "")
+
+# This is standard path in the context of ejabberd release
+config :ejabberd,
+ file: Path.join(rootpath, "etc/ejabberd/ejabberd.yml"),
+ log_path: Path.join(rootpath, 'var/log/ejabberd/ejabberd.log')
+
+# Customize Mnesia directory:
+config :mnesia,
+ dir: Path.join(rootpath, 'var/lib/ejabberd/')