# 从 v3.4.0 升级到 v2026.7.2 前需要了解的事项

**URL:** <https://meta.discourse.org/t/what-to-know-before-upgrading-from-v3-4-0-to-v2026-7-2/411291>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2026年八月31日 13:17 UTC](https://meta.discourse.org/t/what-to-know-before-upgrading-from-v3-4-0-to-v2026-7-2/411291 "2026-08-31T13:17:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![corywright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/corywright/32/575886_2.png) [@corywright](https://meta.discourse.org/u/corywright)\
**Post date:** [2026年九月7日 00:27 UTC](https://meta.discourse.org/t/what-to-know-before-upgrading-from-v3-4-0-to-v2026-7-2/411291/4 "2026-09-07T00:27:36Z")

</div>

我今天尝试进行迁移，结果又一次立刻遇到了 discourse\_docker 主分支中的一个破坏性变更：

> <https://github.com/discourse/discourse_docker/pull/1125>
>
> Run asset:precompile:pretty\_text alongside precompile:build during build time.
> …
> Ensures that the prebuilt prettytext cache is present in /tmp after build time.

这个提交导致构建失败，并破坏了安装/设置过程，但它仍然被合并到了主分支中。这正是我担心的事情。

运行 `./launcher bootstrap app` 后出现以下错误：

```plaintext
rake aborted!
Don't know how to build task 'assets:precompile:pretty_text' (See the list of available tasks with `rake --tasks`)
Did you mean? assets:precompile

```

像这样的破坏性变更是如何被合并到作为官方安装说明一部分提供的主分支中的？构建失败被忽略了吗？我看到的错误就明确地出现在失败日志中：

> <https://github.com/discourse/discourse_docker/actions/runs/34047497614/job/101525134391>

 ![Screenshot 2026-09-06 at 8.26.24 PM](https://global.discourse-cdn.com/meta/original/4X/5/c/d/5cd442cfbf399feb102dc20b2796dd856df8391c.jpeg)

我能够检出之前的一个提交，从而让我继续执行迁移步骤，但这是连续第二次升级因未经验证的提交被合并到主分支而中断了。

---

_[View the full topic](https://meta.discourse.org/t/what-to-know-before-upgrading-from-v3-4-0-to-v2026-7-2/411291)._
