Update ecosystem configuration for production deployment

This commit is contained in:
yoosangwook 2025-04-23 10:02:13 +09:00
parent 2b81cc192e
commit 82c8b25895
2 changed files with 18 additions and 2 deletions

13
dev.ecosystem.config.js Normal file
View File

@ -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',
},
},
],
}

View File

@ -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',
},
},
],
}