forked from elhypnotoad/hypnotoad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
39 lines (34 loc) · 977 Bytes
/
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
defmodule Hypnotoad.Mixfile do
use Mix.Project
def project do
[ app: :hypnotoad,
version: "0.0.1",
elixir: ">= 0.12.0",
build_per_environment: true,
deps: deps ]
end
# Configuration for the OTP application
def application do
[ applications: %w(ssh gproc exlogger cowboy exconfig)a ++ applications(Mix.env),
env: [http_port: 15080],
mod: { Hypnotoad, [] }]
end
defp applications(env) when env in %w(dev), do: %w(exreloader)a
defp applications(_), do: []
defp deps do
[
{:gproc, github: "uwiger/gproc"},
{:exlogger, github: "ElixirWerkz/exlogger"},
{:cowboy, github: "extend/cowboy"},
{:jsex, github: "talentdeficit/jsex"},
{:socket, github: "meh/elixir-socket"},
{:exconfig, github: "yrashk/exconfig"},
] ++ deps(Mix.env)
end
defp deps(env) when env in %w(dev) do
[
{:exreloader, github: "yrashk/exreloader"}
]
end
defp deps(_), do: []
end