From 9f832a6b9b00aa128456d235de6b8adb539deb79 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Apr 2019 16:42:07 -0400 Subject: [PATCH] try using pm2 again --- ecosystem.config.js | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 4ac68b0..2eaa5a4 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,7 +2,7 @@ module.exports = { apps: [{ name: 'roe-base', script: 'app.js', - instances: 1, + instances: 2, autorestart: true, watch: false, env: { @@ -10,7 +10,12 @@ module.exports = { }, env_production: { NODE_ENV: 'production', - SAILS_DATASTORE_URL: process.env.DATABASE_CONNECTION + SAILS_DATASTORE_URL: process.env.DATABASE_CONNECTION, + DATABASE_CONNECTION: process.env.DATABASE_CONNECTION, + PASSPORT_GITHUB_ID: process.env.PASSPORT_GITHUB_ID, + PASSPORT_GITHUB_SECRET: process.env.PASSPORT_GITHUB_SECRET, + PASSPORT_GOOGLE_ID: process.env.PASSPORT_GOOGLE_ID, + PASSPORT_GOOGLE_SECRET: process.env.PASSPORT_GOOGLE_SECRET } }] } diff --git a/package.json b/package.json index 7cc3f2f..34593b2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "start:debug": "npm-run-all --parallel open:client debug", "start:prod": "npm-run-all --parallel build:prod lift", "start:client": "webpack-dev-server --mode development", - "start:eb": "npm run db:migrate && npm run build:prod && npm run lift", + "start:eb": "npm run db:migrate && npm run build:prod && npm run forever", "lift": "sails lift", "build": "npm run build:prod", "build:dev": "webpack --mode development",