Add logrotate config and installation instructions to the readme.

This commit is contained in:
yackob03 2014-01-31 18:17:11 -05:00
parent 2b6c9149e8
commit 9db63a505f
2 changed files with 30 additions and 0 deletions

View file

@ -14,6 +14,7 @@ virtualenv --distribute venv
source venv/bin/activate source venv/bin/activate
pip install -r requirements.txt pip install -r requirements.txt
sudo gdebi --n binary_dependencies/*.deb sudo gdebi --n binary_dependencies/*.deb
sudo cp conf/logrotate/* /etc/logrotate.d/
``` ```
running: running:

View file

@ -0,0 +1,29 @@
/mnt/logs/nginx.access.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 root root
}
/mnt/logs/nginx.error.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 root root
}
/mnt/logs/application.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 root root
}