fix for config loader

This commit is contained in:
Alexander Strizhakov 2020-01-17 11:54:22 +03:00
parent 60ba2339a2
commit 58e8963824
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -12,8 +12,8 @@ defmodule Pleroma.Config.Loader do
# support for Elixir less than 1.9
@spec load() :: map()
def load do
config = Mix.Config.eval!("config/config.exs")
env_config = Mix.Config.eval!("config/#{Mix.env()}.exs")
{config, _paths} = Mix.Config.eval!("config/config.exs")
{env_config, _paths} = Mix.Config.eval!("config/#{Mix.env()}.exs")
Mix.Config.merge(config, env_config)
end