Still allow passing the arg, but fallback to MIX_ENV
authorMark Felder <feld@FreeBSD.org>
Sun, 12 Jul 2020 15:59:12 +0000 (10:59 -0500)
committerMark Felder <feld@FreeBSD.org>
Sun, 12 Jul 2020 15:59:12 +0000 (10:59 -0500)
lib/mix/tasks/pleroma/config.ex

index 343438addc6ccdfb3e186e01ee4670f4ecba336f..38c6a6f1ddc88af1ecc0ac6c4194e87886acba12 100644 (file)
@@ -83,7 +83,7 @@ defmodule Mix.Tasks.Pleroma.Config do
 
   defp migrate_from_db(opts) do
     if Pleroma.Config.get([:configurable_from_database]) do
-      env = Mix.env()
+      env = opts[:env] || Mix.env()
 
       config_path =
         if Pleroma.Config.get(:release) do