From f4efb715253738d08ee8de5544553a967845934e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Oct 2018 21:01:08 -0400 Subject: [PATCH] fix start command --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fd83958..342939f 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "@sailshq/eslint": "^4.19.3" }, "scripts": { - "start": "forever start app.js", - "stop": "forever stopall", + "start": "sudo NODE_ENV='production' forever start app.js", + "stop": "sudo forever stopall", "test": "npm run lint && npm run custom-tests && echo 'Done.'", "lint": "eslint . --max-warnings=0 --report-unused-disable-directives && echo '✔ Your .js files look good.'", "custom-tests": "echo \"(No other custom tests yet.)\" && echo"