Commit 2c6f3b81

mo khan <mo@mokhan.ca>
2014-10-05 16:05:40
update the geolite database.
1 parent 93b1872
Changed files (2)
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