# 现在是升级到稳定版的最佳时机吗？

**URL:** <https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085>\
**Category:** Support\
**Created:** [2023年一月9日 00:49 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085 "2023-01-09T00:49:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinZ](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JustinZ](https://meta.discourse.org/u/JustinZ)\
**Post date:** [2023年一月9日 00:49 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/1 "2023-01-09T00:49:37Z")

</div>

我直到现在才意识到有一个稳定版频道，并且我需要编辑配置才能升级到它。

我现在看到我的网站有一个升级到 `3.0.0.beta16` 的选项。如果我现在设置为稳定版并进行升级，它会先升级到 `3.0.0.beta16`，然后最终升级到 3.0.0 稳定版吗？

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2023年一月9日 01:29 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/2 "2023-01-09T01:29:58Z")

</div>

你为什么认为需要切换到稳定版？

---

<div class="post-metadata">

**Author:** ![JustinZ](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JustinZ](https://meta.discourse.org/u/JustinZ)\
**Post date:** [2023年一月9日 01:41 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/3 "2023-01-09T01:41:49Z")

</div>

我不确定为什么有人需要运行稳定软件的理由。我只想要更少的更新和稳定的软件。

---

<div class="post-metadata">

**Author:** ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**Post date:** [2023年一月9日 01:57 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/4 "2023-01-09T01:57:41Z")

</div>

> [@JustinZ](#):
>
> 如果我现在设置为稳定版并进行升级，它会升级到 `3.0.0.beta16`，然后最终升级到 3.0.0 稳定版吗？

我不这么认为。如果你切换到 `stable`，你只会更新到主版本发布，而 3.0.0 还没有发布。最后一个稳定版本是 2.8.0（你可以在 #release-notes 中看到最新的更新）。

> [@2.8.0: Major Release](https://meta.discourse.org/t/2-8-0-major-release/215829):
>
> Discourse 2.8.0 release! We’ve completed the 2.8.0 development cycle and pushed out the final release. Check out our blog post, as well as all the 2.8.0.betaX #release-notes topics for details.

> [@JustinZ](#):
>
> 我不确定为什么有人需要运行稳定软件的理由

我不认为 Stephen 是在开玩笑。`Stable` 在这里是 `app.yml` 的一个关键字，而不是英语单词。原因是，另一个（默认的）关键字 `tests-passed` 也可以被描述为稳定的：它不太可能被破坏\[1\]，事实上，如果你更新插件和/或主题组件的频率比你希望更新 Discourse 的频率更高，它可能更“稳定”（从英语角度来看）。

* * *

1. 在我运行 Discourse 的 2 年里，我从未遇到过因为某个新提交而导致东西损坏的情况

---

<div class="post-metadata">

**Author:** ![JustinZ](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JustinZ](https://meta.discourse.org/u/JustinZ)\
**Post date:** [2023年一月9日 02:10 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/5 "2023-01-09T02:10:06Z")

</div>

谢谢你的信息！我知道他不是在开玩笑，只是不想讨论原因，只想知道何时升级到稳定版的信息。我会继续更新，直到看到 3.0.0 稳定版发布。

---

<div class="post-metadata">

**Author:** ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**Post date:** [2023年一月9日 02:17 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/6 "2023-01-09T02:17:08Z")

</div>

> [@JustinZ](#):
>
> 并且在我看到 3.0.0 稳定版时切换。

请注意，主要版本在 tests-passed 分支上的发布，据我所知，会伴随着 n+1.beta1 的发布，所以如果你想避免在你的版本中使用“beta”这个词，你应该在更新到 n+1.beta1 之前切换到它。

> [@JustinZ](#):
>
> 不想讨论原因

有时\[1\]。问题有时是基于错误的假设提出的，尽早理解这些假设会更好。

* * *

1. 可以说相当频繁，如果我们处理“请帮忙”的话题。 IMHO，这基于我论坛上的讨论

---

<div class="post-metadata">

**Author:** ![JustinZ](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JustinZ](https://meta.discourse.org/u/JustinZ)\
**Post date:** [2023年一月9日 02:19 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/7 "2023-01-09T02:19:52Z")

</div>

所以，例如，我现在使用的是 2.9.0.beta14。我应该在我的配置中将分支切换到 stable，然后等待 3.0.0 出现在我的 /admin 部分，并且从那时起它只会显示 stable 版本更新吗？

更改配置文件后，我是否必须重启 docker 容器？

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2023年一月9日 03:50 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/8 "2023-01-09T03:50:34Z")

</div>

您现在可以更改 app.yml。您需要等到发布后才能运行另一个命令行升级。目前尚不清楚在发布新稳定版之前还会有多少个 beta 版本。

稳定版意味着更新次数更少，但不一定意味着 bug 更少。运行稳定版比运行测试通过版需要更多的专业知识。关键的安全更新确实包含在稳定版中，但用户体验问题可能会在下一个稳定版发布之前一直存在。第三方插件与稳定版兼容的可能性较小，因为它的测试不够充分。

如果您想要更少的更新，可以减少更新频率。

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年一月9日 19:40 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/9 "2023-01-09T19:40:21Z")

</div>

关于 stable vs test-passed 的一个好解释：

> [@Is Discourse always in "beta"?](https://meta.discourse.org/t/is-discourse-always-in-beta/198215/3?u=canapin):
>
> There’s a good explanation of the branches we use here: So Discourse is in a perpetual beta state, meaning that we’re always working on new features and refinement. In our case beta does not mean unstable; we host sites with millions of monthly pageviews on our tests-passed and beta versions.

---

<div class="post-metadata">

**Author:** ![JustinZ](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JustinZ](https://meta.discourse.org/u/JustinZ)\
**Post date:** [2023年一月11日 23:08 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/10 "2023-01-11T23:08:08Z")

</div>

我必须承认，管理员页面上的更新通知让我感到压力重重，也很困惑。

它很突然地告诉我应该立即更新，但又让我更新到测试版软件。这有点矛盾。我认为它应该告知用户有更新，但只有在当前版本存在安全问题或严重错误时，才应敦促用户尽快更新。

也许如果 beta 标签被认为是稳定的，可以将其移除，或者将其更改为 `tests-passed`，这样管理员在知道自己获得经过全面测试且稳定的软件时，会更放心地进行更新。

或者，它可以去掉 beta 标签，被称为 stable（稳定版），因为我在这里读到的就是这样，然后当前的稳定版本可以被称为 LTS。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2023年一月12日 07:38 UTC](https://meta.discourse.org/t/is-now-the-best-time-to-upgrade-to-a-stable-release/251085/11 "2023-01-12T07:38:29Z")

</div>

> [@JustinZ](#):
>
> 但只有在用户当前版本存在安全问题或严重错误时，才会尽快强制用户更新。

这正是正在发生的事情，当出现新的测试版时，（几乎总是）会有一个严重的安全问题触发新版本。

> [@JustinZ](#):
>
> 或者，它可以去掉测试版标签，被称为稳定版，因为这正是我在这里读到的，然后当前的稳定版可以被称为 LTS。

这确实是一种相当不错（在我看来，更好）的看待事物的方式。
