Add GeoLiteCity, and stats pruning code

This commit is contained in:
Kyle Drake 2015-04-30 12:43:21 -07:00
parent 6a8fa080eb
commit 9c80d5eecd
5 changed files with 33 additions and 5 deletions

View file

@ -31,10 +31,8 @@ end
desc "parse logs"
task :parse_logs => [:environment] do
Dir[File.join($config['logs_path'], '*.log')].each do |logfile_path|
Stat.parse logfile_path
FileUtils.rm logfile_path
end
Stat.parse_logfiles $config['logs_path']
Stat.prune!
end
desc 'Update banned IPs list'