重构:统一 Python 部署脚本并修复编码问题

- 新增 deploy.py 统一部署脚本(调用各子目录 .py 脚本)
- 保留 deploy.sh 统一部署脚本(调用各子目录 .sh 脚本)
- 删除旧的 deploy-all.sh / deploy-domain.sh / deploy-to-prod.sh
- 修复 Windows GBK 编码导致的 UnicodeDecodeError/UnicodeEncodeError
- 修复 nginx 远程目录自动创建
- 移除 backend-single/deploy.py 和 web/deploy.py 中的 emoji 字符

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 18:09:34 +08:00
parent 363e17385b
commit 06b2e16813
7 changed files with 431 additions and 24 deletions
+3 -3
View File
@@ -137,13 +137,13 @@ deploy_frontend() {
# ============================================================================
deploy_admin() {
log_section "部署管理后台"
if [ ! -f "web-admin/deploy.py" ]; then
log_error "管理后台部署脚本不存在: web-admin/deploy.py"
if [ ! -f "web-admin/deploy.sh" ]; then
log_error "管理后台部署脚本不存在: web-admin/deploy.sh"
return 1
fi
log_info "执行管理后台部署..."
cd web-admin
if python3 deploy.py; then
if bash deploy.sh; then
cd ..
log_info "✅ 管理后台部署完成"
return 0