fix(deploy): 加固 Redis 持久化与旧环境启动配置
Test deployment public URL (Linux) / test-linux (push) Canceled after 0s
Test start.ps1 (Windows) / test-windows (push) Canceled after 0s

This commit is contained in:
2026-09-23 16:20:55 +08:00
parent 26b1cdcdc6
commit 74ada0b0bf
18 changed files with 405 additions and 15 deletions
+4
View File
@@ -186,6 +186,8 @@ Initialize-PublicApiBaseUrl `
-Path (Join-Path $scriptDir ".env") `
-Mode "upgrade" `
-Override $env:DEPLOY_PUBLIC_API_BASE_URL
. (Join-Path $scriptDir "scripts\Initialize-SecurityOrigin.ps1")
Initialize-SecurityOrigin -Path (Join-Path $scriptDir ".env")
# ==================== Docker 检查 ====================
function Test-DockerInstalled {
@@ -236,6 +238,8 @@ if (-not (Ensure-DockerRunning)) {
}
# 检测 docker compose
. (Join-Path $scriptDir "scripts\Assert-RedisPersistence.ps1")
Assert-RedisPersistence -ProjectRoot $scriptDir
$hasComposeV2 = $false
try { $null = docker compose version 2>&1; $hasComposeV2 = $true } catch { }