Add our own OTP release configuration
This commit is contained in:
parent
50326536b1
commit
f21b48eadf
2 changed files with 16 additions and 6 deletions
17
mix.exs
17
mix.exs
|
@ -7,7 +7,8 @@ defmodule HAHandler.MixProject do
|
||||||
version: "0.1.0",
|
version: "0.1.0",
|
||||||
elixir: "~> 1.12",
|
elixir: "~> 1.12",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps()
|
deps: deps(),
|
||||||
|
releases: releases()
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -28,4 +29,18 @@ defmodule HAHandler.MixProject do
|
||||||
{:poison, "~> 5.0"}
|
{:poison, "~> 5.0"}
|
||||||
]
|
]
|
||||||
end
|
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
|
end
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
@echo off
|
|
||||||
rem Set the release to work across nodes.
|
|
||||||
rem RELEASE_DISTRIBUTION must be "sname" (local), "name" (distributed) or "none".
|
|
||||||
rem set RELEASE_DISTRIBUTION=name
|
|
||||||
rem set RELEASE_NODE=<%= @release.name %>
|
|
Loading…
Reference in a new issue