Skip to content

Commit

Permalink
Update ci_pagos_dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Francotorrico authored Apr 8, 2024
1 parent 0f964e6 commit 23872c8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci_pagos_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
else
echo "Express ya está instalado."
fi
# Verificar si pm2 está instalado globalmente
if ! npm list -g -depth 0 pm2 > /dev/null; then
echo "Instalando pm2..."
Expand All @@ -79,14 +78,9 @@ jobs:
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
cd /opt/ms-pagos-dev-app
if ! npm list > /dev/null; then
echo "Instalando paquetes npm..."
sudo npm install
else
echo "Los paquetes npm ya están instalados."
fi
sudo pm2 start app.js -f
sudo npm install
sudo pm2 delete app
sudo pm2 start app.js
- name: Chequear si la aplicación está corriendo
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 23872c8

Please sign in to comment.