Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gamgyul163 authored Nov 28, 2024
1 parent 2482239 commit 7e5b834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/server/api/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ git pull origin "$BRANCH_NAME"

# 의존성 설치 및 빌드
npm install || exit 5
npm run build api|| exit 6
npm run build api || exit 6

# 서버 재시작
forever stop dist/main.js || true # 기존 프로세스가 없어도 오류 발생 방지
forever start dist/main.js

echo "배포 성공"
exit 0
exit 0

0 comments on commit 7e5b834

Please sign in to comment.