Skip to content

Commit

Permalink
DEAR-71 terminate and restart only backend & nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
smuefsmuef committed Jul 18, 2024
1 parent 307e6fe commit 3dc91d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ jobs:
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} <<'EOF'
echo '${{ secrets.SSH_ITALIAN_PASSWORD }}' | sudo -S su - ${{ secrets.SSH_ITALIAN_USER }} -c '
cd ~/yappi &&
docker-compose down &&
docker-compose down backend &&
docker-compose down nginx &&
docker pull ghcr.io/24FSIIT16/dear-dev-backend:latest
JWT_SECRET=${{ secrets.JWT_SECRET }} DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }} docker-compose up -d backend'
JWT_SECRET=${{ secrets.JWT_SECRET }} DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }} docker-compose up -d backend nginx'
EOF
- name: cleanup
Expand Down

0 comments on commit 3dc91d0

Please sign in to comment.