Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tank3a committed Aug 17, 2023
1 parent 24436d8 commit bc8fccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

Expand Down

0 comments on commit bc8fccb

Please sign in to comment.