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",