forked from elixir-web/weber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
46 lines (41 loc) · 1.06 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
defmodule Weber.Mixfile do
use Mix.Project
def project do
[ app: :weber,
version: "0.0.5",
name: "Weber",
deps: deps(Mix.env),
source_url: "https://github.com/0xAX/weber",
homepage_url: "http://0xax.github.io/weber/index.html"
]
end
def application do
[
description: 'weber - is Elixir MVC web framework.',
registered: [:weber],
mod: { Weber, [] },
lager: [
{:handlers, [
{:lager_console_backend, :info},
{:lager_file_backend, [{:file, "error.log"}, {:level, :error}]},
{:lager_file_backend, [{:file, "console.log"}, {:level, :info}]},
]}
]
]
end
defp deps(:prod) do
[
{:cowboy, github: "extend/cowboy" },
{:exjson, github: "guedes/exjson"},
{:plug, github: "elixir-lang/plug"},
{:exlager, github: "khia/exlager"},
{:weberContrib, github: "0xAX/weber-contrib"}
]
end
defp deps(:test) do
deps(:prod) ++ [{ :hackney, github: "benoitc/hackney" }]
end
defp deps(_) do
deps(:prod)
end
end