pm2 use fork mode

This commit is contained in:
alsotang 2014-10-22 20:27:03 +08:00
parent 9ec34f7772
commit 65bf1b0ebf

View File

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