Skip to content

Commit ac8e887

Browse files
committed
Update reload.sh to delete duplicate code and clarify roles
1 parent 46ad2bf commit ac8e887

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

script/reload.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
# 에러 핸들링 추가
44
set -e
55

6-
# ecosystem.json 파일이 존재하면 pm2로 실행 중인 프로세스를 중지
7-
if [[ -f "ecosystem.json" ]]; then
8-
pm2 stop ecosystem.json || true
9-
fi
10-
11-
# npm run build 명령어로 프로젝트 빌드
12-
npm run build || exit 1
13-
146
# ecosystem.json 사용하여 pm2로 프로세스 재시작
157
if [[ -f "ecosystem.json" ]]; then
168
pm2 restart ecosystem.json || exit 1

0 commit comments

Comments
 (0)