From c2110dee74a7e522ae08fca528b88efe4c11e90f Mon Sep 17 00:00:00 2001 From: y-minion Date: Tue, 25 Nov 2025 20:38:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.after_install.sh: pnpm install--production → pnpm install --production 2.start_server.sh: node server.js → ./server.js 3. after_install.sh: 불필요한 cd 제거. --- apps/editor/scripts/after_install.sh | 4 +--- apps/editor/scripts/start_server.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/editor/scripts/after_install.sh b/apps/editor/scripts/after_install.sh index 596c743..42a593e 100644 --- a/apps/editor/scripts/after_install.sh +++ b/apps/editor/scripts/after_install.sh @@ -3,6 +3,4 @@ NVM_BIN_PATH="/home/ubuntu/.nvm/versions/node/v22.21.0/bin" export PATH="$NVM_BIN_PATH:$PATH" -cd /home/ubuntu/application || exit 1 - -pnpm install \ No newline at end of file +pnpm install --production \ No newline at end of file diff --git a/apps/editor/scripts/start_server.sh b/apps/editor/scripts/start_server.sh index e004ff2..9502c85 100644 --- a/apps/editor/scripts/start_server.sh +++ b/apps/editor/scripts/start_server.sh @@ -22,7 +22,7 @@ fi echo ">>> Blue Port: $CURRENT_BLUE_PORT" echo ">>> Green Port (New Server): $GREEN_PORT" -PORT=$GREEN_PORT pm2 start "node server.js" --name "app-$GREEN_PORT" +PORT=$GREEN_PORT pm2 start "./server.js" --name "app-$GREEN_PORT" pm2 save