switch forever over to use pm2 instead
parent
bf938dd00f
commit
ffb14c992d
|
@ -18,3 +18,4 @@ lib-cov
|
||||||
*.out
|
*.out
|
||||||
*.pid
|
*.pid
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
ecosystem.config.js
|
||||||
|
|
|
@ -58,7 +58,7 @@ module.exports = {
|
||||||
// ```
|
// ```
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
adapter: 'sails-postgresql',
|
adapter: 'sails-postgresql',
|
||||||
url: sails.config.DATASTORE_URL
|
url: process.env.SAILS_DATASTORE_URL
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* *
|
* *
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
"bcrypt": "^3.0.2",
|
"bcrypt": "^3.0.2",
|
||||||
"eslint-plugin-react": "^7.11.1",
|
"eslint-plugin-react": "^7.11.1",
|
||||||
"express-rate-limit": "^3.2.1",
|
"express-rate-limit": "^3.2.1",
|
||||||
"forever": "^0.15.3",
|
|
||||||
"grunt": "^1.0.3",
|
"grunt": "^1.0.3",
|
||||||
"passport": "^0.4.0",
|
"passport": "^0.4.0",
|
||||||
"passport-github2": "^0.1.11",
|
"passport-github2": "^0.1.11",
|
||||||
"passport-google-oauth20": "^1.0.0",
|
"passport-google-oauth20": "^1.0.0",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
|
"pm2": "^3.2.2",
|
||||||
"react": "^16.6.0",
|
"react": "^16.6.0",
|
||||||
"react-dom": "^16.6.0",
|
"react-dom": "^16.6.0",
|
||||||
"sails": "^1.0.2",
|
"sails": "^1.0.2",
|
||||||
|
@ -59,8 +59,8 @@
|
||||||
"build:prod": "webpack --mode production",
|
"build:prod": "webpack --mode production",
|
||||||
"clean": "rimraf .tmp && mkdirp .tmp/public",
|
"clean": "rimraf .tmp && mkdirp .tmp/public",
|
||||||
"lift": "sails lift",
|
"lift": "sails lift",
|
||||||
"forever": "sudo NODE_ENV='production' ./node_modules/.bin/forever start app.js",
|
"forever": "sudo ./node_modules/.bin/pm2 start roe-base --env production",
|
||||||
"stop": "sudo ./node_modules/.bin/forever stopall",
|
"stop": "sudo ./node_modules/.bin/pm2 delete roe-base",
|
||||||
"test": "npm run lint && npm run custom-tests && echo 'Done.'",
|
"test": "npm run lint && npm run custom-tests && echo 'Done.'",
|
||||||
"lint": "standard && echo '✔ Your .js files look good.'",
|
"lint": "standard && echo '✔ Your .js files look good.'",
|
||||||
"debug": "node --inspect app.js",
|
"debug": "node --inspect app.js",
|
||||||
|
|
Loading…
Reference in New Issue