Add Pleroma.Utils.compile_dir/1

This commit is contained in:
Egor Kislitsyn 2019-12-09 18:23:07 +07:00
commit 84f891ea3e
2 changed files with 13 additions and 3 deletions

View file

@ -73,9 +73,7 @@ defmodule Pleroma.Application do
if dir && File.exists?(dir) do
dir
|> File.ls!()
|> Enum.map(&Path.join(dir, &1))
|> Kernel.ParallelCompiler.compile()
|> Pleroma.Utils.compile_dir()
|> case do
{:error, _errors, _warnings} ->
raise "Invalid custom modules"