fix(build): crashes when files changed :(
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m34s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m34s
BREAKING CHANGE: gives a rabbit hole error closes #24
This commit is contained in:
@@ -180,6 +180,23 @@ function Update-Server {
|
||||
Stop-Service -DisplayName $app_name -Force
|
||||
Start-Sleep -Seconds 1
|
||||
|
||||
Write-Host "Removing old server"
|
||||
|
||||
# Remove old dist folder before extracting
|
||||
$DistPath = Join-Path $LocalPath "dist"
|
||||
|
||||
if (Test-Path $DistPath) {
|
||||
Write-Host "Removing old dist folder..."
|
||||
|
||||
try {
|
||||
Remove-Item $DistPath -Recurse -Force
|
||||
}
|
||||
catch {
|
||||
Write-Host "Failed to remove dist folder: $_"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "Unzipping the folder..."
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user