Created
December 6, 2016 19:18
-
-
Save sircharleswatson/b114828dcf2e9b15825f9084a6674eb5 to your computer and use it in GitHub Desktop.
distillery info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Releases.Config, | |
# This sets the default release built by `mix release` | |
default_release: :default, | |
# This sets the default environment used by `mix release` | |
default_environment: :dev | |
# For a full list of config options for both releases | |
# and environments, visit https://hexdocs.pm/distillery/configuration.html | |
# You may define one or more environments in this file, | |
# an environment's settings will override those of a release | |
# when building in that environment, this combination of release | |
# and environment configuration is called a profile | |
environment :dev do | |
set dev_mode: true | |
set include_erts: false | |
set cookie: :"my-cookie" | |
end | |
environment :prod do | |
set include_erts: true | |
set include_src: false | |
set cookie: :"my-cookie" | |
end | |
# You may define one or more releases in this file. | |
# If you have not set a default release, or selected one | |
# when running `mix release`, the first release in the file | |
# will be used by default | |
release :staging_api do | |
set version: current_version(:studios) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Api.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :studios, | |
version: "0.0.1", | |
elixir: "~> 1.3", | |
elixirc_paths: elixirc_paths(Mix.env), | |
compilers: [:phoenix] ++ Mix.compilers, | |
build_embedded: Mix.env == :prod, | |
start_permanent: Mix.env == :prod, | |
deps: deps()] | |
end | |
def application do | |
[mod: {Api, []}, | |
applications: [ | |
:phoenix, | |
:phoenix_pubsub, | |
:cowboy, | |
:logger, | |
:rethinkdb, | |
:absinthe, | |
:absinthe_plug, | |
:comeonin, | |
:atomic_map, | |
:cors_plug, | |
:joken, | |
:monadex, | |
]] | |
end | |
# Specifies which paths to compile per environment. | |
defp elixirc_paths(:test), do: ["lib", "test/support"] | |
defp elixirc_paths(_), do: ["lib"] | |
# Specifies your project dependencies. | |
# | |
# Type `mix help deps` for examples and options. | |
defp deps do | |
[{:phoenix, "~> 1.2.0"}, | |
{:phoenix_pubsub, "~> 1.0"}, | |
{:cowboy, "~> 1.0"}, | |
{:rethinkdb, "~> 0.4.0"}, | |
{:absinthe, "~> 1.1.0"}, | |
{:absinthe_plug, "~> 1.1"}, | |
{:poison, "~> 1.5.0"}, | |
{:credo, "~> 0.4", only: [:dev, :test]}, | |
{:mix_test_watch, "~> 0.2.6", only: [:dev, :test]}, | |
{:monadex, "~> 1.0"}, | |
{:comeonin, "~> 2.0"}, | |
{:distillery, "~> 0.10"}, | |
{:joken, "~> 1.2"}, | |
{:cors_plug, "~> 1.1"}, | |
{:atomic_map, "~> 0.8"} | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment