Skip to content

Instantly share code, notes, and snippets.

@zamith
Created January 22, 2015 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zamith/6ca8818f3be2b9bf58c2 to your computer and use it in GitHub Desktop.
Save zamith/6ca8818f3be2b9bf58c2 to your computer and use it in GitHub Desktop.
defmodule TheShelf.Mixfile do
use Mix.Project
def project do
[ app: :the_shelf,
version: "0.0.1",
elixir: "~> 1.0.0-rc1",
elixirc_paths: ["lib", "web", "test"],
deps: deps(Mix.env) ]
end
# Configuration for the OTP application
def application do
[ mod: { TheShelf, [] },
applications: apps(Mix.env) ]
end
defp deps(:test) do
[
{:hound, path: "https://github.com/zamith/hound"},
] ++ apps
end
defp deps(_), do: deps
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:ecto, "~> 0.2.0"},
{:phoenix, "0.4.1"},
{:phoenix_haml, "~> 0.0.3"},
{:postgrex, ">= 0.0.0"}
]
end
defp apps(:test) do
[ :hound ] ++ apps
end
defp apps(_), do: apps
defp apps do
[ :phoenix,
:cowboy,
:logger,
:postgrex,
:ecto ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment