From fe730d8df68c5a33129f5004e27aa2f164533fa4 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 25 May 2015 17:50:55 +0800 Subject: [PATCH] Add make run command to run development server --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8b3c3c6..a6ea780 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,9 @@ 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 max --name "cnode" --max-memory-restart 400M >> cnode.log 2>&1 &