pm2 script

This commit is contained in:
alsotang 2016-03-27 12:57:45 +08:00
parent a67958308b
commit 930b274bd2

View File

@ -44,9 +44,9 @@ run:
@node app.js
start: install build
@NODE_ENV=production nohup ./node_modules/.bin/pm2 start app.js -i 0 --name "cnode" --max-memory-restart 400M >> cnode.log 2>&1 &
@NODE_ENV=production ./node_modules/.bin/pm2 start app.js -i 0 --name "cnode" --max-memory-restart 400M
restart: install build
@NODE_ENV=production nohup ./node_modules/.bin/pm2 restart "cnode" >> cnode.log 2>&1 &
@NODE_ENV=production ./node_modules/.bin/pm2 restart "cnode"
.PHONY: install test cov test-cov build run start restart