Skip to content

Commit

Permalink
test : git action test
Browse files Browse the repository at this point in the history
  • Loading branch information
wnsrl1228 committed May 29, 2024
1 parent 2012d38 commit 959d4d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cp $PROJECT_ROOT/build/libs/*.jar $JAR_FILE

# jar 파일 실행
echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG
nohup java -jar -Dspring.profiles.active=prod $JAR_FILE 1> /dev/null 2>&1 &
sudo nohup java -jar -Dspring.profiles.active=prod $JAR_FILE 1> /dev/null 2>&1 &

CURRENT_PID=$(pgrep -f $JAR_FILE)
echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG
2 changes: 1 addition & 1 deletion scripts/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if [ -z $CURRENT_PID ]; then
echo "$TIME_NOW > 현재 실행중인 애플리케이션이 없습니다" >> $DEPLOY_LOG
else
echo "$TIME_NOW > 실행중인 $CURRENT_PID 애플리케이션 종료 " >> $DEPLOY_LOG
kill -15 $CURRENT_PID
sudo kill -15 $CURRENT_PID
fi

0 comments on commit 959d4d9

Please sign in to comment.