feat: 部署脚本支持 .env.AMS,与 ASG 一致从 .sample 生成无后缀文件

Made-with: Cursor
This commit is contained in:
2026-03-20 18:23:18 +08:00
parent ded45063d9
commit a70545b702
3 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -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