Skip to content

Instantly share code, notes, and snippets.

@philss
Created December 24, 2019 20:25
Show Gist options
  • Save philss/54fdae59814f78721e6c8e0edd2e081a to your computer and use it in GitHub Desktop.
Save philss/54fdae59814f78721e6c8e0edd2e081a to your computer and use it in GitHub Desktop.
Mix project with a flexible config for the Elixir artifacts
defmodule MyApp.MixProject do
use Mix.Project
def project do
[
app: :my_app,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
deps_path: System.get_env("MIX_DEPS_PATH") || "./deps",
releases: [
broker: [
include_executables_for: [:unix]
]
]
]
end
# ....
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment