ha-handler/mix.exs
2022-01-25 10:52:07 +01:00

46 lines
998 B
Elixir

defmodule HAHandler.MixProject do
use Mix.Project
def project do
[
app: :ha_handler,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: releases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {HAHandler.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:plug, "~> 1.12"},
{:plug_cowboy, "~> 2.5"},
{:procket, "~> 0.9"},
{:poison, "~> 5.0"}
]
end
# See https://hexdocs.pm/mix/Mix.Tasks.Release.html for details.
defp releases do
[
ha_handler: [
include_executables_for: [:unix],
applications: [runtime_tools: :permanent],
include_erts: true,
config_providers: [
{Config.Reader, {:system, "HA_HANDLER_CONFIG_DIR", "config.exs"}}
]
]
]
end
end