Skip to content

Commit

Permalink
๐Ÿ‘ท Update start.sh
Browse files Browse the repository at this point in the history
jar ํŒŒ์ผ๋ช… ์ˆ˜์ •
  • Loading branch information
min-0 authored Jul 29, 2024
1 parent 14d5a2b commit 2d74f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ TIME_NOW=$(date +%c)

# build ํŒŒ์ผ ๋ณต์‚ฌ
echo "$TIME_NOW > $JAR_FILE ๋ณต์‚ฌ" >> $DEPLOY_LOG
cp $PROJECT_ROOT/build/libs/*.jar $JAR_FILE
cp $PROJECT_ROOT/build/libs/dnd-travel-0.0.1-SNAPSHOT.jar $JAR_FILE

# jar ํŒŒ์ผ ์‹คํ–‰
echo "$TIME_NOW > $JAR_FILE ์‹คํ–‰" >> $DEPLOY_LOG
nohup java -jar $JAR_FILE > $APP_LOG 2> $ERROR_LOG &

CURRENT_PID=$(pgrep -f $JAR_FILE)
echo "$TIME_NOW > ์„œ๋น„์Šค PID: $CURRENT_PID " >> $DEPLOY_LOG
echo "$TIME_NOW > ์„œ๋น„์Šค PID: $CURRENT_PID " >> $DEPLOY_LOG

0 comments on commit 2d74f70

Please sign in to comment.