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]