Still allow passing the arg, but fallback to MIX_ENV

This commit is contained in:
Mark Felder 2020-07-12 10:59:12 -05:00
parent 0871e8b8fe
commit 46b123cded

View File

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