We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4793113 commit 4643ef9Copy full SHA for 4643ef9
1 file changed
scripts/deploy.sh
@@ -5,18 +5,18 @@ set -e # 에러 발생 시 스크립트 중단
5
REPOSITORY=/home/ubuntu/app
6
LOG_FILE=$REPOSITORY/deploy.log
7
8
+# 로그 함수
9
+log() {
10
+ echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a $LOG_FILE
11
+}
12
+
13
# 환경 변수 로드
14
log "> 환경 변수 로드"
15
source ~/.bashrc
16
17
SPRING_PROFILE=${SPRING_PROFILE:-prod}
18
PORT=${PORT:-8080}
19
-# 로그 함수
-log() {
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a $LOG_FILE
-}
-
20
log "=== 배포 시작 ==="
21
22
log "> PROFILE=$SPRING_PROFILE / PORT=$PORT"
0 commit comments