Fix in-db configuration in dev environment
authorrinpatch <rinpatch@sdf.org>
Tue, 14 Jul 2020 08:41:30 +0000 (11:41 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 14 Jul 2020 10:16:54 +0000 (13:16 +0300)
commite6ccc2556568f2180c3ce1945bdc7a0cba97e924
tree452722ece6987c8b526a5af0af0c864774ca059e
parent5d215fd81f529b639db9096ca71d4e7f0a6ed386
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.
lib/pleroma/application.ex
mix.exs