Skip to content

Commit

Permalink
modificando salida
Browse files Browse the repository at this point in the history
  • Loading branch information
RominaCalaniCruz authored Apr 1, 2024
1 parent f39c2de commit 25e83bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci_app_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
if ! command -v nodejs &> /dev/null; then
if ! command -v nodejs > /dev/null; then
sudo yum install -y nodejs
else
echo "Node.js is installed."
fi
if ! command -v npm &> /dev/null; then
if ! command -v npm > /dev/null; then
sudo yum install -y npm
else
echo "npm is installed."
fi
if ! command -v git &> /dev/null; then
if ! command -v git > /dev/null; then
sudo yum install -y git
else
echo "Git is installed."
Expand Down Expand Up @@ -74,13 +74,13 @@ jobs:
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
if npm list -g -depth 0 express &> /dev/null; then
if npm list -g -depth 0 express > /dev/null; then
echo "Express is installed."
else
sudo npm install express -g
fi
if npm list -g -depth 0 pm2 &> /dev/null; then
if npm list -g -depth 0 pm2 > /dev/null; then
echo "PM2 is installed."
else
sudo npm install pm2 -g
Expand All @@ -105,7 +105,7 @@ jobs:
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
cd /opt/ms-clientes-dev-app
if curl http://localhost:3000 ; then
if curl http://localhost:3000 > /dev/null; then
echo "App is running."
else
echo "App is not running."
Expand Down

0 comments on commit 25e83bc

Please sign in to comment.