Skip to content

A platform for community discussion. Free, open, simple.

DEV: Ensure `maxminddb:fetch` works as standalone task (#21893)

David Taylor0330f51d75b3
diff --git a/lib/tasks/maxminddb.rake b/lib/tasks/maxminddb.rake
index ffb6a06514d..eb66f64a495 100644
--- a/lib/tasks/maxminddb.rake
+++ b/lib/tasks/maxminddb.rake
@@ -1,9 +1,7 @@
# frozen_string_literal: true
desc "downloads MaxMind's GeoLite2-City database"
-task "maxminddb:get" do
- require "discourse_ip_info"
-
+task "maxminddb:get" => "environment" do
puts "Downloading MaxMindDb's GeoLite2-City..."
DiscourseIpInfo.mmdb_download("GeoLite2-City")