From 19131f0170d421f9e5ebfd68e55a853ecbc2df99 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 16 Aug 2016 12:50:19 +0200 Subject: [PATCH] Added docs on debshots:accesslog2visits rake task --- doc/README.rdoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/README.rdoc b/doc/README.rdoc index da0670f..b011d34 100644 --- a/doc/README.rdoc +++ b/doc/README.rdoc @@ -346,3 +346,7 @@ server { Parse Nginx access logs to count the number of visits of each package: RAILS_ENV=production bundle exec rake debshots:accesslog2visits[/var/log/nginx/cache-access.log.1] + +As a cron job: + +41 9 * * * cd $HOME/debshots ; RAILS_ENV=production /home/debshots/.rbenv/shims/bundle exec rake debshots:accesslog2visits[/var/log/nginx/cache-access.log.1]