diff --git a/dev.ecosystem.config.js b/dev.ecosystem.config.js new file mode 100644 index 00000000..6a38ad34 --- /dev/null +++ b/dev.ecosystem.config.js @@ -0,0 +1,13 @@ +module.exports = { + apps: [ + { + name: 'qcast-front-development', + script: 'node_modules/next/dist/bin/next', + instances: 1, + exec_mode: 'fork', + env: { + NODE_ENV: 'development', + }, + }, + ], +} diff --git a/ecosystem.config.js b/ecosystem.config.js index 295b7871..c4ffc467 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,9 +2,12 @@ module.exports = { apps: [ { name: 'qcast-front-production', - script: 'npm run start:dev', - instance: 2, + script: 'node_modules/next/dist/bin/next', + instances: 2, exec_mode: 'cluster', + env: { + NODE_ENV: 'production', + }, }, ], }