Skip to content

Commit

Permalink
build: node v check
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Nov 23, 2023
1 parent e64a809 commit c214c5b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ec2-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ jobs:
ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts
ssh -o StrictHostKeyChecking=no $USERNAME@$HOST << EOF
source ~/.bashrc
node -v
cd ~/frappe-bench/apps/erpnext
git pull
cd ~/frappe-bench
sudo kill -9 \$(sudo lsof -t -i:8000)
sudo kill -9 \$(sudo lsof -t -i:11000)
sudo kill -9 \$(sudo lsof -t -i:13000)
screen
bench start
set -e
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v || echo "Node.js installation failed"
npm -v || echo "npm installation failed"
EOF

0 comments on commit c214c5b

Please sign in to comment.