mirror of
https://github.com/cnodejs/nodeclub.git
synced 2026-02-01 16:34:28 +00:00
内存 > 400M后,重启
This commit is contained in:
parent
f7b9a10760
commit
c47dd089c4
2
Makefile
2
Makefile
@ -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 &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user