diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 480a6db..244db52 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash -REPOSITORY=/home/ubuntu/GLOG/server +REPOSITORY=/home/ubuntu/glog cd $REPOSITORY -APP_NAME=GLOG -JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1) -JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME +APP_NAME=glog +JAR_NAME=$(ls $REPOSITORY/server/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1) +JAR_PATH=$REPOSITORY/server/build/libs/$JAR_NAME CURRENT_PID=$(pgrep -f $APP_NAME)