mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
Add GeoLiteCity, and stats pruning code
This commit is contained in:
parent
6a8fa080eb
commit
9c80d5eecd
5 changed files with 33 additions and 5 deletions
6
Rakefile
6
Rakefile
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue