Skip to content

Commit

Permalink
fix: add inets and ssl to extra_applications in test env
Browse files Browse the repository at this point in the history
Ref voltone/x509#63 and https://github.com/voltone/x509/pull/64/files
Issue: phoenixframework/phoenix#5502

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
  • Loading branch information
tcitworld committed Aug 18, 2023
1 parent 7cc9a37 commit af46bea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af46bea

Please sign in to comment.