summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-07-14 11:41:30 +0300
committerrinpatch <rinpatch@sdf.org>2020-07-14 13:16:54 +0300
commite6ccc2556568f2180c3ce1945bdc7a0cba97e924 (patch)
tree452722ece6987c8b526a5af0af0c864774ca059e /mix.exs
parent5d215fd81f529b639db9096ca71d4e7f0a6ed386 (diff)
Fix in-db configuration in dev environment
Previously, in-db configuration only worked when `warnings_as_errors` was disabled because re-compiling scrubbers on application restart created a warning about module conflicts. This patch fixes that by enabling `ignore_module_conflict` option of the compiler at runtime, and enables `warnings_as_errors` in prod since there is no reason to keep it disabled anymore.
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs2
1 files changed, 0 insertions, 2 deletions
diff --git a/mix.exs b/mix.exs
index d7992ee37..741f917e6 100644
--- a/mix.exs
+++ b/mix.exs
@@ -90,8 +90,6 @@ defmodule Pleroma.Mixfile do
defp elixirc_paths(_), do: ["lib"]
defp warnings_as_errors(:prod), do: false
- # Uncomment this if you need testing configurable_from_database logic
- # defp warnings_as_errors(:dev), do: false
defp warnings_as_errors(_), do: true
# Specifies OAuth dependencies.