Commit 2c6f3b81
Changed files (2)
config
config/GeoLiteCity.dat
Binary file
Rakefile
@@ -4,3 +4,10 @@
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
+
+desc "update the geolite database"
+task :geolite do
+ sh 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
+ sh 'gunzip GeoLiteCity.dat.gz'
+ sh 'mv -f GeoLiteCity.dat config/GeoLiteCity.dat'
+end