Skip to content
Permalink
Browse files
PM2 Log Rotation
  • Loading branch information
hijohnnylin committed Dec 13, 2019
1 parent 0cebcbe commit c9ea232f282938c3fec8a276abccd44942774603
Showing 1 changed file with 6 additions and 1 deletion.
@@ -7,4 +7,9 @@ n 10
npm install -g npm

# Install latest pm2
npm install -g pm2
npm install -g pm2

# Rotate logs
pm2 install pm2-logrotate
pm2 set pm2-logrotate:max_size 10M
pm2 set pm2-logrotate:retain 2

0 comments on commit c9ea232

Please sign in to comment.