From b8bbaba37fd2407ee233bf286c614f17e71e4d19 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Thu, 29 May 2025 11:17:23 +0900 Subject: [PATCH] Update environment configuration: change API host URL to production and set development port to 5010 --- .env.development | 2 +- dev.ecosystem.config.js | 2 +- prd1.ecosystem.config.js | 13 +++++++++++++ prd2.ecosystem.config.js | 13 +++++++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 prd1.ecosystem.config.js create mode 100644 prd2.ecosystem.config.js diff --git a/.env.development b/.env.development index 8890f8d4..a2f63287 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ NEXT_PUBLIC_API_SERVER_PATH="https://dev-api.hanasys.jp" NEXT_PUBLIC_HOST_URL="//1.248.227.176:4000" -NEXT_PUBLIC_API_HOST_URL="http://1.248.227.176:5000" +NEXT_PUBLIC_API_HOST_URL="https://dev.hanasys.jp" SESSION_SECRET="i3iHH1yp2/2SpQSIySQ4bpyc4g0D+zCF9FAn5xUG0+Y=" diff --git a/dev.ecosystem.config.js b/dev.ecosystem.config.js index 6a38ad34..3bd3ffde 100644 --- a/dev.ecosystem.config.js +++ b/dev.ecosystem.config.js @@ -6,7 +6,7 @@ module.exports = { instances: 1, exec_mode: 'fork', env: { - NODE_ENV: 'development', + PORT: 5010, }, }, ], diff --git a/prd1.ecosystem.config.js b/prd1.ecosystem.config.js new file mode 100644 index 00000000..6a85f59b --- /dev/null +++ b/prd1.ecosystem.config.js @@ -0,0 +1,13 @@ +module.exports = { + apps: [ + { + name: 'qcast-front-production-1', + script: 'node_modules/next/dist/bin/next', + instances: 1, + exec_mode: 'fork', + env: { + PORT: 5000, + }, + }, + ], +} diff --git a/prd2.ecosystem.config.js b/prd2.ecosystem.config.js new file mode 100644 index 00000000..0083d8e3 --- /dev/null +++ b/prd2.ecosystem.config.js @@ -0,0 +1,13 @@ +module.exports = { + apps: [ + { + name: 'qcast-front-production-2', + script: 'node_modules/next/dist/bin/next', + instances: 1, + exec_mode: 'fork', + env: { + PORT: 5001, + }, + }, + ], +}