Compare commits
4 Commits
73600055fc
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 70e376c939 | |||
| 62a1ad83ab | |||
| 47c5a47ffa | |||
| 9bd6e1fc04 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -188,3 +188,4 @@ backend/go.sum
|
||||
BUILD_NUMBER
|
||||
scripts/resetDanger.js
|
||||
LstWrapper/Program_vite_as_Static.txt
|
||||
scripts/stopPool.go
|
||||
|
||||
@@ -110,6 +110,12 @@ function Update-BuildNumber {
|
||||
}
|
||||
|
||||
Write-Host "Fronend build finished successfully."
|
||||
Pop-Location
|
||||
|
||||
Write-Host "Building wrapper"
|
||||
Push-Location $rootDir/LstWrapper
|
||||
dotnet publish -c Release -o ./publish
|
||||
|
||||
Pop-Location
|
||||
Update-BuildNumber
|
||||
|
||||
|
||||
46
scripts/iisControls.ps1
Normal file
46
scripts/iisControls.ps1
Normal file
@@ -0,0 +1,46 @@
|
||||
param (
|
||||
[string]$ServerName,
|
||||
[string]$AppPoolName,
|
||||
[string]$StopOrStart
|
||||
)
|
||||
|
||||
write-host $StopOrStart
|
||||
if ($StopOrStart -eq "stop") {
|
||||
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||
param($AppPoolName)
|
||||
|
||||
Import-Module WebAdministration
|
||||
Write-Host "Stopping AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||
|
||||
try {
|
||||
Stop-WebAppPool -Name $AppPoolName -ErrorAction Stop
|
||||
|
||||
Start-Sleep -Seconds 2
|
||||
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||
Write-Host "Result: $state"
|
||||
} catch {
|
||||
Write-Error $_.Exception.Message
|
||||
exit 1
|
||||
}
|
||||
} -ArgumentList $AppPoolName
|
||||
}
|
||||
|
||||
if ($StopOrStart -eq "start"){
|
||||
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||
param($AppPoolName)
|
||||
|
||||
Import-Module WebAdministration
|
||||
Write-Host "Starting AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||
|
||||
try {
|
||||
Start-WebAppPool -Name $AppPoolName
|
||||
Start-Sleep -Seconds 2
|
||||
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||
Write-Host "Result: $state"
|
||||
} catch {
|
||||
Write-Error $_.Exception.Message
|
||||
exit 1
|
||||
}
|
||||
} -ArgumentList $AppPoolName
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ $tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_sta
|
||||
# Copy files to organized structure
|
||||
$filesToCopy = @(
|
||||
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
||||
@{ Source = "LstWrapper\publish\*"; Destination = "lstwrapper\" },
|
||||
@{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" },
|
||||
@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||
|
||||
Reference in New Issue
Block a user