合并远程修改后提交

This commit is contained in:
super committed 2026-03-29 11:45:36 +08:00
1 parent efae286f5c
commit c7871c94b5
1 file changed
+5 -1
+5 -1
View File
@@ -48,7 +48,11 @@ echo "🔄 重启 Docker 服务..."
$DC_CMD down --remove-orphans || echo "⚠️ Warning: docker-compose down returned error, attempting to continue..."
$DC_CMD up -d --build
# 5. 清理未使用镜像
# 5. 执行数据库迁移(SQLAlchemy / Alembic)
echo "🗄️ 执行数据库表结构更新..."
$DC_CMD exec -T hxops-backend flask --app manage.py db upgrade || { echo "❌ 数据库迁移失败"; exit 1; }
# 6. 清理未使用镜像
echo "🧹 清理旧镜像..."
docker image prune -f