Limit the pm2 log size

This commit is contained in:
Louis Lam
2022-03-23 11:17:23 +08:00
parent 40991fbc28
commit 7fb16d2f9a
3 changed files with 9 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ if (type == "local") {
bash("check=$(pm2 --version)");
if (check == "") {
println("Installing PM2");
bash("npm install pm2 -g");
bash("npm install pm2 -g && pm2 install pm2-logrotate");
bash("pm2 startup");
}