feat: 部署脚本支持 .env.AMS,与 ASG 一致从 .sample 生成无后缀文件
Made-with: Cursor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user