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.