Skip to content

Commit

Permalink
배배
Browse files Browse the repository at this point in the history
  • Loading branch information
JONG-KYEONG committed Jan 8, 2024
1 parent 8bf9479 commit 8b20bdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

REPOSITORY=/home/ubuntu/GLOGG
REPOSITORY=/home/ubuntu/GLOG/server
cd $REPOSITORY

APP_NAME=GLOGG
APP_NAME=GLOG
JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

Expand All @@ -18,9 +18,8 @@ else
sleep 5
fi

cd /home/ubuntu/GLOGG/server/build/libs
echo "> Deploy - $JAR_PATH "
nohup java -jar Glog-0.0.1-SNAPSHOT.jar &
nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null &
#nohup java -jar $JAR_PATH &
#nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null &
#nohup java -jar $JAR_PATH --spring.profiles.active=prod > /dev/null 2> /dev/null < /dev/null &

0 comments on commit 8b20bdc

Please sign in to comment.