Skip to content

Commit c2110de

Browse files
committed
배포 스크립트 수정
1.after_install.sh: pnpm install--production → pnpm install --production 2.start_server.sh: node server.js → ./server.js 3. after_install.sh: 불필요한 cd 제거.
1 parent fa282fa commit c2110de

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

apps/editor/scripts/after_install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ NVM_BIN_PATH="/home/ubuntu/.nvm/versions/node/v22.21.0/bin"
33

44
export PATH="$NVM_BIN_PATH:$PATH"
55

6-
cd /home/ubuntu/application || exit 1
7-
8-
pnpm install
6+
pnpm install --production

apps/editor/scripts/start_server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222
echo ">>> Blue Port: $CURRENT_BLUE_PORT"
2323
echo ">>> Green Port (New Server): $GREEN_PORT"
2424

25-
PORT=$GREEN_PORT pm2 start "node server.js" --name "app-$GREEN_PORT"
25+
PORT=$GREEN_PORT pm2 start "./server.js" --name "app-$GREEN_PORT"
2626

2727
pm2 save
2828

0 commit comments

Comments
 (0)