compile fix
This commit is contained in:
parent
58e8963824
commit
b310feeccb
|
@ -68,12 +68,15 @@ def migrate_to_db(file_path \\ nil) do
|
|||
end
|
||||
end
|
||||
|
||||
if Code.ensure_loaded?(Config.Reader) do
|
||||
defp read_file(config_file), do: Config.Reader.read_imports!(config_file)
|
||||
else
|
||||
defp read_file(config_file), do: Mix.Config.eval!(config_file)
|
||||
end
|
||||
|
||||
defp do_migrate_to_db(config_file) do
|
||||
if File.exists?(config_file) do
|
||||
{custom_config, _paths} =
|
||||
if Code.ensure_loaded?(Config.Reader),
|
||||
do: Config.Reader.read_imports!(config_file),
|
||||
else: Mix.Config.eval!(config_file)
|
||||
{custom_config, _paths} = read_file(config_file)
|
||||
|
||||
custom_config
|
||||
|> Keyword.keys()
|
||||
|
|
Loading…
Reference in a new issue