Created
April 19, 2019 10:05
-
-
Save webislife/506f69362f91a8a1a4a2cc9dab1a45a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ENVOIRMENT = require('./env.production.js'), | |
GREEN_ENV = Object.assign({ | |
SSR_PORT: 8080, | |
}, ENVOIRMENT), | |
BLUE_ENV = Object.assign({ | |
SSR_PORT: 9090, | |
}, ENVOIRMENT); | |
console.log('GREEN ENV', GREEN_ENV); | |
console.log('BLUE ENV', BLUE_ENV); | |
module.exports = { | |
APPS: [ | |
{ | |
name: 'SSR_GREEN', | |
script: 'src/server.js', | |
instances: 2, | |
exec_mode: 'cluster', | |
autorestart: true, | |
watch: false, | |
max_memory_restart: '2G', | |
kill_timeout: 10000, | |
env_production: GREEN_ENV, | |
}, | |
{ | |
name: 'SSR_BLUE', | |
script: 'src/server.js', | |
instances: 2, | |
exec_mode: 'cluster', | |
autorestart: true, | |
watch: false, | |
max_memory_restart: '2G', | |
kill_timeout: 10000, | |
env_production: BLUE_ENV, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment