Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
peterarsentev committed Jan 21, 2025
1 parent 540bf41 commit d983a7a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions deploy.bsh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 &

0 comments on commit d983a7a

Please sign in to comment.