Skip to content

Commit

Permalink
💻 Fix application load in release.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
sgobotta committed Jan 23, 2023
1 parent 2f3156d commit 8c819da
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/ex_commerce/release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,18 @@ defmodule ExCommerce.Release do

defp repos, do: Application.fetch_env!(@app, :ecto_repos)

defp load_app, do: Application.load(@app)
defp load_app do
case Application.load(@app) do
:ok ->
:ok

{:error, error} ->
:ok =
Logger.warn(
"Error while loading application error=#{inspect(error, pretty: true)}"
)
end
end

defp eval_seed(repo, filename, app) do
seeds_file = get_path(repo, filename, app)
Expand Down

0 comments on commit 8c819da

Please sign in to comment.