ha-handler/mix.exs

48 lines
1 KiB
Elixir
Raw Permalink Normal View History

2022-01-24 14:03:10 +01:00
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,
2022-01-25 10:52:07 +01:00
deps: deps(),
releases: releases()
2022-01-24 14:03:10 +01:00
]
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"},
2022-02-19 10:18:05 +01:00
{:poison, "~> 5.0"},
{:postgrex, "~> 0.16.1"}
2022-01-24 14:03:10 +01:00
]
end
2022-01-25 10:52:07 +01:00
# 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
2022-01-24 14:03:10 +01:00
end