Skip to content

Commit

Permalink
build: node install
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Nov 23, 2023
1 parent c214c5b commit 743723c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ec2-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ jobs:
ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts
ssh -o StrictHostKeyChecking=no $USERNAME@$HOST << EOF
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"
source ~/.profile
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
EOF

0 comments on commit 743723c

Please sign in to comment.