Skip to content

Commit

Permalink
ci cd 적용 deploy.sh 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tjrmswo committed Jul 11, 2024
1 parent 3a8473d commit 3534530
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,16 @@ REPOSITORY=/home/ubuntu/deploy
cd $REPOSITORY

sudo pnpm install
# pm2의 전체 경로 설정
PM2_BIN="/home/ubuntu/.nvm/versions/node/v20.15.1/bin/pm2"

sudo pm2 reload all
# pm2가 실행 가능한지 확인
if [ -x "$PM2_BIN" ]; then
# pm2를 사용하여 애플리케이션 시작
$PM2_BIN start Frontend
else
echo "pm2를 찾거나 실행할 수 없습니다: $PM2_BIN"
exit 1
fi

# sudo $PM2_BIN reload all

0 comments on commit 3534530

Please sign in to comment.