Skip to content

Instantly share code, notes, and snippets.

@olivermt
Last active July 26, 2016 21:22
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 olivermt/35febe09fe200e620488c2989b8546cb to your computer and use it in GitHub Desktop.
Save olivermt/35febe09fe200e620488c2989b8546cb to your computer and use it in GitHub Desktop.
defmodule Safari.Mixfile do
use Mix.Project
def project do
[app: :safari,
version: System.get_env("SAFARI_APP_VERSION") || "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env in [:prod, :staging],
start_permanent: Mix.env in [:prod, :staging],
aliases: aliases,
deps: deps]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Safari, []},
applications: [:phoenix, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :httpoison,
:comeonin, :plug_basic_auth,
:gen_smtp]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, ">= 1.2.0"},
{:phoenix_ecto, ">= 3.0.0"},
{:phoenix_live_reload, ">= 1.0.5", only: :dev},
{:postgrex, ">= 0.11.2"},
{:cowboy, ">= 1.0.4"},
{:plug, ">= 1.1.6"},
{:redix, ">= 0.4.0"},
{:earmark, ">= 0.2.0", only: :dev},
{:ex_doc, ">= 0.12.0", only: :dev},
{:exrm, ">= 1.0.6"},
{:comeonin, ">= 2.5.1"},
{:corsica, ">=0.5.0"},
{:httpoison, ">= 0.9.0"},
{:gen_smtp, ">= 0.11.0"}, #email system
{:ex_aws, ">= 0.5.0"}, # aws s3 client
{:omtt_util, "== 1.0.0"},
{:gettext, "==0.11.0"}
]
end
# Aliases are shortcut or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"]]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment