Skip to content

Commit 4643ef9

Browse files
committed
fix: deploy.sh에서 log 함수 호출 순서 수정
1 parent 4793113 commit 4643ef9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/deploy.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ set -e # 에러 발생 시 스크립트 중단
55
REPOSITORY=/home/ubuntu/app
66
LOG_FILE=$REPOSITORY/deploy.log
77

8+
# 로그 함수
9+
log() {
10+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a $LOG_FILE
11+
}
12+
813
# 환경 변수 로드
914
log "> 환경 변수 로드"
1015
source ~/.bashrc
1116

1217
SPRING_PROFILE=${SPRING_PROFILE:-prod}
1318
PORT=${PORT:-8080}
1419

15-
# 로그 함수
16-
log() {
17-
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a $LOG_FILE
18-
}
19-
2020
log "=== 배포 시작 ==="
2121

2222
log "> PROFILE=$SPRING_PROFILE / PORT=$PORT"

0 commit comments

Comments
 (0)