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