Skip to content

Commit

Permalink
Merge pull request processone#725 from processone/elixir-mix
Browse files Browse the repository at this point in the history
Allow building an ejabberd release with mix and elixir release manager
  • Loading branch information
mremond committed Sep 2, 2015
2 parents 1bc2c8c + 4ae7c81 commit 608661d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ XmppAddr.hrl
/test/*.beam
/logs/
/priv/sql
/rel/ejabberd
10 changes: 10 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -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/'
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 608661d

Please sign in to comment.