forked from wangbo/easyai
fix(deploy): 加固 Redis 持久化与旧环境启动配置
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user