From 19b49f24a3dcb5f20ac2887cd6c4668a9c0e8df3 Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Thu, 5 Feb 2026 00:37:47 +0100 Subject: [PATCH] Kill stale site processes and enable remote migrations by default in deploy script --- scripts/deploy-ftp.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-ftp.ps1 b/scripts/deploy-ftp.ps1 index e43a474..dbdf3e1 100644 --- a/scripts/deploy-ftp.ps1 +++ b/scripts/deploy-ftp.ps1 @@ -81,6 +81,8 @@ if ($RecycleAppPool) { ScriptBlock = { Import-Module WebAdministration Stop-WebAppPool -Name $using:AppPoolName -ErrorAction SilentlyContinue + Get-Process GameList -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue + Get-Process dotnet -ErrorAction SilentlyContinue | Where-Object { $_.Path -like "*picknplay*" } | Stop-Process -Force -ErrorAction SilentlyContinue } } if ($UseWinRmHttps) { $invokeParams["UseSSL"] = $true } @@ -138,10 +140,10 @@ if ($RunEfMigrations) { ScriptBlock = { param($sitePath) Set-Location $sitePath - if (-not (Get-Command dotnet-ef -ErrorAction SilentlyContinue)) { - throw "dotnet-ef not available on remote host. Install SDK or set `$RunEfMigrations = $false." + if (-not (Get-Command dotnet ef -ErrorAction SilentlyContinue)) { + throw "dotnet ef not available on remote host. Install SDK or set `$RunEfMigrations = $false." } - dotnet-ef database update --no-build + dotnet ef database update --no-build } ArgumentList = @($RemoteSitePath) }