We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c82f52 commit 75d6d85Copy full SHA for 75d6d85
1 file changed
.github/workflows/deploy.yml
@@ -46,18 +46,6 @@ jobs:
46
key: ${{ secrets.EC2_SSH_KEY }}
47
script: |
48
cd /home/ubuntu/app
49
-
50
- pkill -f "java -jar" || true
51
- sleep 5
52
53
- JAR_PATH=$(ls -t build/libs/*-SNAPSHOT.jar | head -n 1)
54
- echo "Using JAR: $JAR_PATH"
55
56
- if [ -z "$JAR_PATH" ]; then
57
- echo "No JAR found under build/libs"
58
- exit 1
59
- fi
60
61
- export DB_PASSWORD=${{ secrets.DB_PASSWORD }}
62
63
- nohup java -jar "$JAR_PATH" > app.log 2>&1 &
+ DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
+ java -jar build/libs/*-SNAPSHOT.jar
0 commit comments