From 3ffe9756864b95b69f3a4cbb321ec1e7556684fe Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 11 Aug 2016 18:24:08 +0200 Subject: [PATCH] Documented how to parse access logs. --- doc/README.rdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/README.rdoc b/doc/README.rdoc index 90638b8..da0670f 100644 --- a/doc/README.rdoc +++ b/doc/README.rdoc @@ -14,6 +14,10 @@ createdb -O debshots -E UTF8 -T template0 debshots adduser debshots +Allow the user to parse access log files from Nginx: + +adduser debshots adm + su - debshots === Install the required Ruby version using rbenv @@ -336,3 +340,9 @@ server { /keep_screenshot/:screenshot * Users: 403 * Moderators: re-approve a screenshot that was requested for deletion + +== Cron jobs + +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]