diff --git a/.github/workflows/CI_Pipeline-DEV.yml b/.github/workflows/CI_Pipeline-DEV.yml index fe70a2f..e84fbff 100644 --- a/.github/workflows/CI_Pipeline-DEV.yml +++ b/.github/workflows/CI_Pipeline-DEV.yml @@ -47,16 +47,12 @@ jobs: npm init -y # Initialize package.json with default values sudo npm install -g express pm2 npm install - - - name: Detener la aplicación Node si está corriendo - run: | - sudo pm2 stop myApp || true - name: Start Node Service run: | sleep 5 # Espera 5 segundos - sudo pm2 start /opt/appDir/app.js --name "myApp" + sudo $(which pm2) start -f app.js - name: Check if Application is Running run: |