Configure automatic deployment path3
Node.js CI/CD / build (push) Successful in 24s

This commit is contained in:
John
2026-09-22 21:09:08 +05:30
parent 8435b42778
commit b657ba0215
2 changed files with 7 additions and 4 deletions
+6 -2
View File
@@ -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."
+1 -2
View File
@@ -15,8 +15,7 @@ const server = http.createServer((req, res) => {
</head>
<body>
<h1>Hello from Node.js!</h1>
<h1>Step CI-CD1 </h1>
<h1>Step CI-CD 2</h1>
<h1>Step CI-CD</h1>
<p>Welcome, This application is running on Windows 10.</p>
</body>
</html>