This commit is contained in:
@@ -40,6 +40,19 @@ jobs:
|
||||
git pull
|
||||
fi
|
||||
|
||||
# 3.1 创建/更新 .env 文件 (从本地环境变量注入)
|
||||
echo -e "\n===== 配置环境变量 ====="
|
||||
cat > backend/.env <<EOF
|
||||
# Aliyun OSS Configuration
|
||||
ALIYUN_ACCESS_KEY_ID=LTAI5tE62GW8MKyoEaotzxXk
|
||||
ALIYUN_ACCESS_KEY_SECRET=Zdzqo1fgj57DxxioXOotNKhJdSfVQW
|
||||
ALIYUN_OSS_ENDPOINT=https://oss-cn-shanghai.aliyuncs.com
|
||||
ALIYUN_OSS_BUCKET_NAME=tangledup-ai-staging
|
||||
ALIYUN_OSS_INTERNAL_ENDPOINT=https://oss-cn-shanghai-internal.aliyuncs.com
|
||||
# Aliyun Tingwu Configuration
|
||||
ALIYUN_TINGWU_APP_KEY=6eOX7N3tKE0fDwb
|
||||
EOF
|
||||
|
||||
# 4. 重新启动 Docker 容器
|
||||
echo -e "\n===== 启动 Docker 容器 ====="
|
||||
echo $SUDO_PASSWORD | sudo -S docker compose up -d --build
|
||||
|
||||
Reference in New Issue
Block a user