From 07858b68e619c83cae6130fc175af9ea36c62c83 Mon Sep 17 00:00:00 2001 From: ABU SAID Date: Mon, 1 Jan 2024 22:42:04 +0600 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 076754e..d6cb6f3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,8 +26,5 @@ jobs: cache: 'npm' - run: npm install - run: npm run build - - name: Deploy Application - run: | - pm2 stop nextjs-example || true - pm2 delete nextjs-example || true - pm2 start npm --name nextjs-app -- run start -- -p 3000 + - run: chmod +x ./pm2_runner.sh + - run: bash ./pm2_runner.sh