diff --git a/docker/verify/run-verify-quick.sh b/docker/verify/run-verify-quick.sh index 2e31957..4953391 100755 --- a/docker/verify/run-verify-quick.sh +++ b/docker/verify/run-verify-quick.sh @@ -19,6 +19,6 @@ printf '1\n127.0.0.1\n' | DEPLOY_DRY_RUN=1 DEPLOY_FORCE_RECONFIG=1 ./start.sh echo "" echo "✅ 配置验证通过,检查生成的文件:" -ls -la .env .env.tools .env.ASG 2>/dev/null || true +ls -la .env .env.tools .env.ASG .env.AMS 2>/dev/null || true echo "" grep -E "NUXT_PUBLIC_(BASE_APIURL|BASE_SOCKETURL|SG_APIURL)" .env 2>/dev/null | head -3 diff --git a/start.ps1 b/start.ps1 index 83df958..48a7413 100644 --- a/start.ps1 +++ b/start.ps1 @@ -1,4 +1,4 @@ -#Requires -Version 5.1 +#Requires -Version 5.1 # EasyAI Windows 一键部署脚本 # 仅支持 IP 访问(本地/局域网),不含域名与 HTTPS # 一行命令: git clone https://git.51easyai.com/wangbo/easyai; cd easyai; .\start.ps1 @@ -138,7 +138,7 @@ function Setup-EnvFiles { Write-Host "" Write-Step "📝 配置环境文件..." - # 复制 .env.tools 和 .env.ASG + # 复制 .env.tools、.env.ASG、.env.AMS(无 example 后缀的从 .sample 生成) if (-not (Test-Path ".env.tools")) { Copy-Item ".env.tools.sample" ".env.tools" Write-Ok ".env.tools" @@ -147,6 +147,10 @@ function Setup-EnvFiles { Copy-Item ".env.ASG.sample" ".env.ASG" Write-Ok ".env.ASG" } + if (-not (Test-Path ".env.AMS")) { + Copy-Item ".env.AMS.sample" ".env.AMS" + Write-Ok ".env.AMS" + } # 配置 .env if (-not (Test-Path ".env")) { @@ -404,6 +408,7 @@ function Main { } else { if (-not (Test-Path ".env.tools")) { Copy-Item ".env.tools.sample" ".env.tools" } if (-not (Test-Path ".env.ASG")) { Copy-Item ".env.ASG.sample" ".env.ASG" } + if (-not (Test-Path ".env.AMS")) { Copy-Item ".env.AMS.sample" ".env.AMS" } } if ($script:DeployDryRun) { diff --git a/start.sh b/start.sh index 7ef6b62..f58525e 100755 --- a/start.sh +++ b/start.sh @@ -112,9 +112,10 @@ setup_env_files() { echo "" echo "📝 配置环境文件..." - # 6. 复制 .env.tools 和 .env.ASG + # 6. 复制 .env.tools、.env.ASG、.env.AMS(无 example 后缀的从 .sample 生成) [ ! -f .env.tools ] && cp .env.tools.sample .env.tools && echo " ✓ .env.tools" [ ! -f .env.ASG ] && cp .env.ASG.sample .env.ASG && echo " ✓ .env.ASG" + [ ! -f .env.AMS ] && cp .env.AMS.sample .env.AMS && echo " ✓ .env.AMS" # 4/5. 配置 .env if [ ! -f .env ]; then @@ -268,6 +269,7 @@ main() { else [ ! -f .env.tools ] && cp .env.tools.sample .env.tools [ ! -f .env.ASG ] && cp .env.ASG.sample .env.ASG + [ ! -f .env.AMS ] && cp .env.AMS.sample .env.AMS fi if [ "$DEPLOY_DRY_RUN" = "1" ]; then