From b657ba0215006e19f9ef0a7940f07ce811399444 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 22 Sep 2026 21:09:08 +0530 Subject: [PATCH] Configure automatic deployment path3 --- .github/workflows/build.yml | 8 ++++++-- app.js | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5973b8..8e69ffb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,8 +47,12 @@ jobs: New-Item -ItemType Directory -Path $deployPath -Force } - Write-Host "Deploying to $deployPath" + Write-Host "Deploying application..." Copy-Item -Path ".\*" -Destination $deployPath -Recurse -Force - Write-Host "Deployment completed successfully." + Write-Host "Restarting Node.js application..." + + pm2 restart my-node-app + + Write-Host "Deployment completed." \ No newline at end of file diff --git a/app.js b/app.js index 6932c87..aa9b0dd 100644 --- a/app.js +++ b/app.js @@ -15,8 +15,7 @@ const server = http.createServer((req, res) => {

Hello from Node.js!

-

Step CI-CD1

-

Step CI-CD 2

+

Step CI-CD

Welcome, This application is running on Windows 10.