Add start scripts for cluster1 and cluster2; log run mode in config export

This commit is contained in:
yoosangwook 2025-05-29 19:11:32 +09:00
parent 27e923ecd4
commit 2be0cd341a
3 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import configProduction from './config.production'
// 클라이언트에서는 이 함수를 사용하여 config 값을 참조합니다.
const Config = () => {
console.log('🚀 ~ Config ~ process.env.NEXT_PUBLIC_RUN_MODE:', process.env.NEXT_PUBLIC_RUN_MODE)
switch (process.env.NEXT_PUBLIC_RUN_MODE) {
case 'local':
return configLocal

2
startscript-cluster1.js Normal file
View File

@ -0,0 +1,2 @@
var exec = require('child_process').exec
exec('yarn start:cluster1', { windowsHide: true })

2
startscript-cluster2.js Normal file
View File

@ -0,0 +1,2 @@
var exec = require('child_process').exec
exec('yarn start:cluster2', { windowsHide: true })