diff --git a/server/scripts/update.ps1 b/server/scripts/update.ps1 index fc1f735..64747d2 100644 --- a/server/scripts/update.ps1 +++ b/server/scripts/update.ps1 @@ -119,29 +119,29 @@ $plantFunness = { exit 1 # Exit with a non-zero code if there's an error } - Write-Host "-----------------------Dealing with LSTv1 Stuff ------------------------------------" - try { - # Expand the archive - Expand-Archive -Path "$($localPath)\$($obsBuild)" -DestinationPath $obslst -Force + # Write-Host "-----------------------Dealing with LSTv1 Stuff ------------------------------------" + # try { + # # Expand the archive + # Expand-Archive -Path "$($localPath)\$($obsBuild)" -DestinationPath $obslst -Force - # Delete the zip file after extraction - Write-Host "Deleting the zip file..." - Remove-Item -Path "$($localPath)\$($obsBuild)" -Force - } catch { - Write-Host "Error: $_" - exit 1 # Exit with a non-zero code if there's an error - } + # # Delete the zip file after extraction + # Write-Host "Deleting the zip file..." + # Remove-Item -Path "$($localPath)\$($obsBuild)" -Force + # } catch { + # Write-Host "Error: $_" + # exit 1 # Exit with a non-zero code if there's an error + # } - # for iowa 2 need to change the port config on the start up of nextjs server - if($token -eq "usiow2"){ - $jsonPkgloc = "$($obslst)\apps\frontend\package.json" - #read the file - $jsonContent = Get-Content -Path $jsonPkgloc | ConvertFrom-Json - #change the second we want to update - $jsonContent.scripts.start = "next start -p 3001" - # convert back to json - $jsonContent | ConvertTo-Json | Set-Content -Path $jsonPkgloc - } + # # for iowa 2 need to change the port config on the start up of nextjs server + # if($token -eq "usiow2"){ + # $jsonPkgloc = "$($obslst)\apps\frontend\package.json" + # #read the file + # $jsonContent = Get-Content -Path $jsonPkgloc | ConvertFrom-Json + # #change the second we want to update + # $jsonContent.scripts.start = "next start -p 3001" + # # convert back to json + # $jsonContent | ConvertTo-Json | Set-Content -Path $jsonPkgloc + # } ############################################################################ Write-Host "Stopping the services to do the updates, pkgs and db changes." @@ -426,15 +426,15 @@ try { # Write-Host "Starting $($serviceGateway)" # Start-Service -DisplayName $serviceGateway # Start-Sleep -Seconds 1 - #Write-Host "Starting $($serviceAuth)" - #Start-Service -DisplayName $serviceAuth - #Start-Sleep -Seconds 1 - Write-Host "Starting $($serviceApp)" - Start-Service -DisplayName $serviceApp - Start-Sleep -Seconds 1 - Write-Host "Starting $($serviceFrontEnd)" - Start-Service -DisplayName $serviceFrontEnd - Start-Sleep -Seconds 1 + # Write-Host "Starting $($serviceAuth)" + # Start-Service -DisplayName $serviceAuth + # Start-Sleep -Seconds 1 + # Write-Host "Starting $($serviceApp)" + # Start-Service -DisplayName $serviceApp + # Start-Sleep -Seconds 1 + # Write-Host "Starting $($serviceFrontEnd)" + # Start-Service -DisplayName $serviceFrontEnd + # Start-Sleep -Seconds 1 Write-Host "Starting $( $serviceLstV2)" Start-Service -DisplayName $serviceLstV2 Start-Sleep -Seconds 1