mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
As Mix config now must be evaluated at runtime, rename to runtime.exs
This commit is contained in:
parent
e0c9a6308d
commit
91763bbc61
@ -1,10 +0,0 @@
|
||||
use Mix.Config
|
||||
|
||||
# This is standard path in the context of ejabberd release
|
||||
config :ejabberd,
|
||||
file: "config/ejabberd.yml",
|
||||
log_path: 'log/ejabberd.log'
|
||||
|
||||
# Customize Mnesia directory:
|
||||
config :mnesia,
|
||||
dir: 'database/'
|
12
config/runtime.exs
Normal file
12
config/runtime.exs
Normal file
@ -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/')
|
Loading…
Reference in New Issue
Block a user