Skip to content

Instantly share code, notes, and snippets.

@ckhrysze
Created October 3, 2018 18:08
Show Gist options
  • Save ckhrysze/74991633a7293d09e3f4ac2a9da3afdb to your computer and use it in GitHub Desktop.
Save ckhrysze/74991633a7293d09e3f4ac2a9da3afdb to your computer and use it in GitHub Desktop.
distillery split after
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