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
@@ -343,6 +343,8 @@ function Test-Docker {
function Start-Services {
Write-Host ""
Step "Starting EasyAI services..."
. (Join-Path $script:Root "scripts\Assert-RedisPersistence.ps1")
Assert-RedisPersistence -ProjectRoot $script:Root
$useComposeV2 = $false
try { & docker compose version *> $null; if ($LASTEXITCODE -eq 0) { $useComposeV2 = $true } } catch { }
@@ -437,6 +439,8 @@ function Main {
-Path (Join-Path $script:Root ".env") `
-Mode $publicUrlMode `
-Override $script:PublicApiBaseUrlCandidate
. (Join-Path $script:Root "scripts\Initialize-SecurityOrigin.ps1")
Initialize-SecurityOrigin -Path (Join-Path $script:Root ".env")
if ($script:DeployDryRun) {
Warn "dry-run mode: skip docker and services"