From 3e677866f93348ff65c057ee386c4e60d8ef44ae Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Oct 2018 23:56:04 -0400 Subject: [PATCH 1/2] add forever instead of pm2 --- .gitignore | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0bce691..e69af24 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,4 @@ lib-cov *.log *.out *.pid - +package-lock.json diff --git a/package.json b/package.json index a942053..0f0f671 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "@sailshq/socket.io-redis": "^5.2.0", "async": "2.0.1", "express-rate-limit": "^3.2.1", + "forever": "^0.15.3", "grunt": "^1.0.3", "sails": "^1.0.2", "sails-hook-grunt": "^3.0.2", @@ -20,7 +21,8 @@ "@sailshq/eslint": "^4.19.3" }, "scripts": { - "start": "NODE_ENV=production node app.js", + "start": "NODE_ENV=production forever start app.js", + "stop": "forever stop 1", "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" From 98809565b4b9b3844242543d70b43ca960888d01 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 24 Oct 2018 00:00:18 -0400 Subject: [PATCH 2/2] add --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0f0f671..fd83958 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "@sailshq/eslint": "^4.19.3" }, "scripts": { - "start": "NODE_ENV=production forever start app.js", - "stop": "forever stop 1", + "start": "forever start app.js", + "stop": "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"