fix: add inets and ssl to extra_applications in test env

Ref https://github.com/voltone/x509/issues/63 and https://github.com/voltone/x509/pull/64/files
Issue: https://github.com/phoenixframework/phoenix/issues/5502

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-08-18 11:22:13 +02:00
parent 7cc9a37c78
commit af46bea7f7
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 9 additions and 1 deletions

10
mix.exs
View File

@ -80,10 +80,18 @@ defmodule Mobilizon.Mixfile do
def application do
[
mod: {Mobilizon, []},
extra_applications: [:logger, :runtime_tools, :guardian, :geolix, :crypto, :cachex]
extra_applications: extra_applications(Mix.env())
]
end
defp extra_applications(:test) do
extra_applications(:prod) ++ [:inets, :ssl]
end
defp extra_applications(_env) do
[:logger, :runtime_tools, :guardian, :geolix, :crypto, :cachex]
end
def copy_files(%{path: target_path} = release) do
File.cp_r!("./rel/overlays", target_path)
release