From 4930f3bb77819373cb90968359a305d911fd8323 Mon Sep 17 00:00:00 2001 From: kyu-hyun <102718303+lalabulla@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:24:44 +0900 Subject: [PATCH] Update deploy.sh --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bbe0328b..b6ba85b8 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -2,7 +2,7 @@ BUILD_JAR=$(ls /home/ubuntu/app/imdang-container/build/libs/imdang-container-0.0.1-SNAPSHOT.jar) JAR_NAME=$(basename $BUILD_JAR) -echo ">>> build 파일명: $JAR_NAME" >> /home/ubuntu/deploy.log +echo ">>> build 파일명: $JAR_NAME" > /home/ubuntu/deploy.log echo ">>> build 파일 복사" >> /home/ubuntu/deploy.log DEPLOY_PATH=/home/ubuntu/app/ @@ -14,4 +14,4 @@ sudo ps -ef | grep java | awk '{print $2}' | xargs kill -15 DEPLOY_JAR=$DEPLOY_PATH$JAR_NAME echo ">>> DEPLOY_JAR 배포" >> /home/ubuntu/deploy.log echo ">>> $DEPLOY_JAR의 $JAR_NAME를 실행합니다" >> /home/ubuntu/deploy.log -nohup java -jar $DEPLOY_JAR >> /home/ubuntu/deploy.log 2> /home/ubuntu/deploy_err.log & \ No newline at end of file +nohup java -jar $DEPLOY_JAR >> /home/ubuntu/deploy.log 2> /home/ubuntu/deploy_err.log &