diff --git a/deploy.bsh b/deploy.bsh index 954073e..ecf80c1 100644 --- a/deploy.bsh +++ b/deploy.bsh @@ -1,10 +1,5 @@ #!/bin/bash -echo "kill process" -if test -f "dionea.pid"; then - kill -9 $(cat dionea.pid) -fi - export JAVA_HOME=/root/jdk-21.0.3 export PATH=$JAVA_HOME/bin:$PATH @@ -13,6 +8,10 @@ git fetch git rebase -./gradlew bootJar +sh gradlew bootJar + +if test -f "dionea.pid"; then + kill -9 $(cat dionea.pid) +fi nohup java "-Dspring.config.location=file:./dionea.properties" -jar build/libs/dionea-0.0.1.jar & \ No newline at end of file