diff --git a/apps/explorer/lib/explorer/application.ex b/apps/explorer/lib/explorer/application.ex index 1fb5cfabd5..4839ed13a8 100644 --- a/apps/explorer/lib/explorer/application.ex +++ b/apps/explorer/lib/explorer/application.ex @@ -176,7 +176,7 @@ defmodule Explorer.Application do end defp account_repo do - if System.get_env("ACCOUNT_DATABASE_URL") || Mix.env() == :test do + if Application.get_env(:explorer, Explorer.Account)[:enabled] || Mix.env() == :test do [Explorer.Repo.Account] else []