Skip to content

Commit

Permalink
Update reload.sh to delete duplicate code and clarify roles
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoHadam committed Dec 29, 2023
1 parent 46ad2bf commit ac8e887
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions script/reload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
# 에러 핸들링 추가
set -e

# ecosystem.json 파일이 존재하면 pm2로 실행 중인 프로세스를 중지
if [[ -f "ecosystem.json" ]]; then
pm2 stop ecosystem.json || true
fi

# npm run build 명령어로 프로젝트 빌드
npm run build || exit 1

# ecosystem.json 사용하여 pm2로 프로세스 재시작
if [[ -f "ecosystem.json" ]]; then
pm2 restart ecosystem.json || exit 1
Expand Down

0 comments on commit ac8e887

Please sign in to comment.