Merge pull request #725 from processone/elixir-mix

Allow building an ejabberd release with mix and elixir release manager
This commit is contained in:
Mickaël Rémond 2015-09-02 14:25:43 +02:00
commit 608661d8c0
3 changed files with 16 additions and 2 deletions

1
.gitignore vendored
View File

@ -41,3 +41,4 @@ XmppAddr.hrl
/test/*.beam
/logs/
/priv/sql
/rel/ejabberd

10
config/config.exs Normal file
View File

@ -0,0 +1,10 @@
use Mix.Config
# This is standard path in the context of ejabberd release
config :ejabberd,
file: "running-config/ejabberd.yml",
log_path: 'log/ejabberd.log'
# Customize Mnesia directory:
config :mnesia,
dir: 'mnesiadb/'

View File

@ -15,7 +15,9 @@ defmodule Ejabberd.Mixfile do
def application do
[mod: {:ejabberd_app, []},
applications: [:kernel, :stdlib]]
applications: [:ssl],
included_applications: [:p1_logger,:p1_yaml,:p1_tls,:p1_xml,:p1_stringprep,:p1_zlib,:p1_cache_tab,:mnesia,:p1_utils,
:p1_iconv,:esip,:p1_stun,:ehyperloglog,:p1_mysql,:p1_pgsql,:eredis]]
end
defp erlc_options do
@ -39,7 +41,8 @@ defmodule Ejabberd.Mixfile do
{:ehyperloglog, git: "https://github.com/vaxelfel/eHyperLogLog"},
{:p1_mysql, git: "https://github.com/processone/mysql"},
{:p1_pgsql, git: "https://github.com/processone/pgsql"},
{:eredis, git: "https://github.com/wooga/eredis"}
{:eredis, git: "https://github.com/wooga/eredis"},
{:exrm, "~> 0.19.2"}
]
end
end