Added docs on debshots:accesslog2visits rake task
This commit is contained in:
parent
339bb0427f
commit
19131f0170
1 changed files with 4 additions and 0 deletions
|
|
@ -346,3 +346,7 @@ server {
|
||||||
Parse Nginx access logs to count the number of visits of each package:
|
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]
|
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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue