FIX: rake maxminddb:get broke cause it required environment

This commit is contained in:
Sam Saffron 2019-05-28 08:59:28 +10:00
parent ec02696fa2
commit e4e2acf148
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
require_dependency 'discourse_ip_info'
desc "downloads MaxMind's GeoLite2-City database"
task "maxminddb:get" do
task "maxminddb:get" => :environment do
puts "Downloading MaxMindDb's GeoLite2-City..."
DiscourseIpInfo.mmdb_download('GeoLite2-City')