Skip to content

Commit 75d6d85

Browse files
committed
chore: 스크립트 수정
1 parent 2c82f52 commit 75d6d85

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ jobs:
4646
key: ${{ secrets.EC2_SSH_KEY }}
4747
script: |
4848
cd /home/ubuntu/app
49-
50-
pkill -f "java -jar" || true
51-
sleep 5
5249
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 &
50+
DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
51+
java -jar build/libs/*-SNAPSHOT.jar

0 commit comments

Comments
 (0)