Created
October 3, 2018 18:08
-
-
Save ckhrysze/74991633a7293d09e3f4ac2a9da3afdb to your computer and use it in GitHub Desktop.
distillery split after
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 Systematize.Mixfile do | |
use Mix.Project | |
# ... | |
defp deps do | |
[ | |
{:phoenix, "~> 1.3.3"}, | |
{:phoenix_pubsub, "~> 1.0"}, | |
{:phoenix_html, "~> 2.10"}, | |
{:phoenix_live_reload, "~> 1.0", only: :dev}, | |
{:gettext, "~> 0.11"}, | |
{:cowboy, "~> 1.0"} | |
] | |
|> choose_distillery | |
end | |
defp choose_distillery(static_deps) do | |
case System.get_env("LEGACY_BUILD") do | |
nil -> [{:distillery, "~> 2.0", runtime: false} | static_deps] | |
_ -> [{:distillery, "~> 1.5", runtime: false} | static_deps] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment