Skip to content

Commit

Permalink
fixing CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnnoh committed Aug 29, 2023
1 parent bd0cd30 commit 7bb7ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/bin/bash

ROOT_PATH="/home/ubuntu/Reminiscence-BE"
JAR="$ROOT_PATH/application.jar"
JAR="$ROOT_PATH/build/libs/reminiscence-0.0.1-SNAPSHOT.jar"

APP_LOG="$ROOT_PATH/application.log"
ERROR_LOG="$ROOT_PATH/error.log"
START_LOG="$ROOT_PATH/start.log"

echo "$JAR 복사" >> $START_LOG
cp $ROOT_PATH/build/libs/reminiscence-0.0.1-SNAPSHOT.jar $JAR

echo "$JAR 실행" >> $START_LOG
nohup java -jar $JAR > $APP_LOG 2> $ERROR_LOG &

Expand Down
2 changes: 1 addition & 1 deletion scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

ROOT_PATH="/home/ubuntu/Reminiscence-BE"
JAR="$ROOT_PATH/application.jar"
JAR="$ROOT_PATH/build/libs/reminiscence-0.0.1-SNAPSHOT.jar"
STOP_LOG="$ROOT_PATH/stop.log"
SERVICE_PID=$(pgrep -f $JAR) # 실행중인 Spring 서버의 PID

Expand Down

0 comments on commit 7bb7ceb

Please sign in to comment.