内存 > 400M后,重启

This commit is contained in:
alsotang 2015-05-12 16:55:03 +08:00
parent f7b9a10760
commit c47dd089c4

View File

@ -41,7 +41,7 @@ build:
@./node_modules/loader/bin/build views .
start: install build
@nohup ./node_modules/.bin/pm2 start app.js -i max --name "cnode" --max-memory-restart 600M >> cnode.log 2>&1 &
@nohup ./node_modules/.bin/pm2 start app.js -i max --name "cnode" --max-memory-restart 400M >> cnode.log 2>&1 &
restart: install build
@nohup ./node_modules/.bin/pm2 restart "cnode" >> cnode.log 2>&1 &