This commit is contained in:
@@ -47,8 +47,12 @@ jobs:
|
|||||||
New-Item -ItemType Directory -Path $deployPath -Force
|
New-Item -ItemType Directory -Path $deployPath -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Deploying to $deployPath"
|
Write-Host "Deploying application..."
|
||||||
|
|
||||||
Copy-Item -Path ".\*" -Destination $deployPath -Recurse -Force
|
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."
|
||||||
@@ -15,8 +15,7 @@ const server = http.createServer((req, res) => {
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Hello from Node.js!</h1>
|
<h1>Hello from Node.js!</h1>
|
||||||
<h1>Step CI-CD1 </h1>
|
<h1>Step CI-CD</h1>
|
||||||
<h1>Step CI-CD 2</h1>
|
|
||||||
<p>Welcome, This application is running on Windows 10.</p>
|
<p>Welcome, This application is running on Windows 10.</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user