From 48076b04e407bf12fd0aee7b2eb17c4a49a16f65 Mon Sep 17 00:00:00 2001 From: jun Date: Tue, 15 Oct 2024 03:19:19 +0900 Subject: [PATCH] =?UTF-8?q?feat(workflow):=20script=20build/libs=5Fold=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start_application.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/start_application.sh b/scripts/start_application.sh index fb3da78..7f3e420 100644 --- a/scripts/start_application.sh +++ b/scripts/start_application.sh @@ -38,6 +38,12 @@ for i in $(seq 1 $MAX_RETRIES); do if curl -s "${HEALTH_CHECK_URL}${NEW_PORT}/actuator/health" | grep -q "UP"; then echo "New version is healthy" # 새 버전의 라이브러리를 메인 디렉토리로 이동 + + # libs_old 디렉토리가 존재하면 삭제 + if [ -d "build/libs_old" ]; then + rm -rf build/libs_old + fi + mv build/libs build/libs_old mv build/libs_new build/libs