This commit is contained in:
alsotang 2015-05-27 22:11:09 +08:00
parent 4e928d7c43
commit d8b3cc9614

View File

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