From bc8fccb0b649340e54e3b9b016a302c018be8480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A2=85=EC=9B=90=20Jongwon?= Date: Thu, 17 Aug 2023 17:17:48 +0900 Subject: [PATCH] Update deploy.sh --- backend/scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/scripts/deploy.sh b/backend/scripts/deploy.sh index 2020735..bd5c042 100644 --- a/backend/scripts/deploy.sh +++ b/backend/scripts/deploy.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash PROJECT_ROOT="/home/ubuntu/cicdproject" -JAR_FILE="$PROJECT_ROOT/*.jar" +JAR_FILE="$PROJECT_ROOT/a2cartag.jar" APP_LOG="$PROJECT_ROOT/application.log" ERROR_LOG="$PROJECT_ROOT/error.log" @@ -18,7 +18,7 @@ else echo "$TIME_NOW > 실행 중인 $CURRENT_PID 애플리케이션을 종료합니다." >> $DEPLOY_LOG kill -9 $CURRENT_PID fi -./gradlew clean build + echo "$TIME_NOW > $JAR_FILE 파일 생성" >> $DEPLOY_LOG cp $PROJECT_ROOT/build/libs/*.jar $JAR_FILE