From 65bf1b0ebf76e5cb87d0589ffb62b4eafb37e178 Mon Sep 17 00:00:00 2001 From: alsotang Date: Wed, 22 Oct 2014 20:27:03 +0800 Subject: [PATCH] pm2 use fork mode --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3bfbcaa..38befd0 100644 --- a/Makefile +++ b/Makefile @@ -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 &