Skip to content
Snippets Groups Projects
Commit 0c4b8385 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

document how to set up log rotation in DEPLOYMENT.md. issue #119

parent 5c3064ce
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,22 @@ server {
}
</pre>
5. restart your webserver and you're all done: `sudo /etc/init.d/nginx restart
5. restart your webserver: `sudo /etc/init.d/nginx restart
### 6. set up log rotation
create a file as root at `/etc/logrotate.d/browserid`:
/home/browserid/var/log/browserid.log /home/browserid/var/log/browserid-metrics.json /home/browserid/var/log/verifier.log /home/browserid/var/log/verifier-metrics.json {
daily
rotate 30
copytruncate
dateext
compress
dateformat -%Y-%m-%d
}
Now your logfiles will be automatically rotated.
easy, right?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment