From 743723c5c9ecbeb501117080296e92cee373a314 Mon Sep 17 00:00:00 2001 From: Ashish Baravaliya Date: Thu, 23 Nov 2023 10:32:37 -0500 Subject: [PATCH] build: node install --- .github/workflows/ec2-deployment.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ec2-deployment.yml b/.github/workflows/ec2-deployment.yml index a5148bbedd83..36bceb207935 100644 --- a/.github/workflows/ec2-deployment.yml +++ b/.github/workflows/ec2-deployment.yml @@ -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 \ No newline at end of file