Skip to content

Commit

Permalink
docs: Also rotate pm2 logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Aug 19, 2020
1 parent eca3adb commit e637599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ npx pm2 restart aggie
# User input: Enable log rotation.
sudo $EDITOR /etc/logrotate.conf
# Paste the following, changing `/home/my_user` to the location of the `aggie` folder.
/home/my_user/aggie/logs/*.log {
/home/my_user/aggie/logs/*.log
/home/my_user/.pm2/logs/*.log
{
weekly
missingok
rotate 12
Expand Down

0 comments on commit e637599

Please sign in to comment.