diff --git a/Makefile b/Makefile index 5734c4e..347a106 100644 --- a/Makefile +++ b/Makefile @@ -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