Skip to content

Commit

Permalink
Update catalog-service-ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeineb2001 authored Nov 18, 2024
1 parent d332866 commit 3b6da38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/catalog-service-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,15 @@ jobs:
password: ${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}
script: |
mkdir -p ~/service-catalog
# Tuer le processus existant Java si présent
pkill -f 'java.*service-catalog.jar' || true
# Attendre 5 secondes avant de relancer le service
sleep 5
# Lancer le service en arrière-plan
nohup java -jar ~/service-catalog/service-catalog.jar --server.port=8082 > ~/service-catalog/app.log 2>&1 &
# Vérification des logs pour détecter des erreurs
tail -n 10 ~/service-catalog/app.log

0 comments on commit 3b6da38

Please sign in to comment.