Skip to content

Instantly share code, notes, and snippets.

@webislife
Created April 19, 2019 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webislife/506f69362f91a8a1a4a2cc9dab1a45a8 to your computer and use it in GitHub Desktop.
Save webislife/506f69362f91a8a1a4a2cc9dab1a45a8 to your computer and use it in GitHub Desktop.
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