Skip to content

Instantly share code, notes, and snippets.

@linkdd
Created September 14, 2021 22:30
Show Gist options
  • Save linkdd/d49c9afce54e66e2a0af5a6b32ade6cd to your computer and use it in GitHub Desktop.
Save linkdd/d49c9afce54e66e2a0af5a6b32ade6cd to your computer and use it in GitHub Desktop.
Sample Mix project configuration with datapio_cluster
defmodule MyApp.MixProject do
use Mix.Project
def project do
[
app: :my_app,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :datapio_cluster],
mod: {MyApp.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{
:datapio_cluster,
github: "datapio/opencore",
ref: "main",
sparse: "apps/datapio_cluster"
}
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment