# 升级带有未知本地更改的 v2.2.0.beta4 版论坛

**URL:** https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [2024年六月2日 11:40 UTC](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241 "2024-06-02T11:40:43Z")
**Posts on this page:** 4
**Page:** 3

<div class="post-metadata">

### Author: ![manton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manton/32/389960_2.png) [@manton](https://meta.discourse.org/u/manton)
#### Post date: [2024年六月16日 12:57 UTC](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241/42 "2024-06-16T12:57:22Z")

</div>

因此，我厌倦了等待所有者重置服务器。我按照您在帖子中提到的，将旧的 discourse 移动到另一个名为“discourse-bad”的文件夹中。

然后，我只需按照[discourse 安装说明](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md#5-install-prerequisites-for-docker-debianubuntu-based-distro-example)一步一步进行操作。将旧 app.yml 文件中的信息输入到新的文件中。将备份 .tar 文件从旧目录移动到新目录，然后按照[此处](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034)的说明从备份中恢复。我们现在已恢复在线！

接下来我需要对 git 仓库进行什么操作吗？我想确保它不会再次出错。

_编辑：在此解决方案中补充，Ubuntu 版本已从 18.04 → 20.04 → 22.04 逐步升级。不确定这是否促成了成功，但我认为这仍然是一个重要的步骤。_

---

<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: [2024年六月17日 00:36 UTC](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241/43 "2024-06-17T00:36:53Z")

</div>

> [@manton](#):
>
> 我需要在这里对推送 git 仓库做些什么吗？

不用。你不应该对 git 做任何更改。我相信对仓库的更改至少是导致你遇到的一些问题之一。

---

<div class="post-metadata">

### Author: ![manton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manton/32/389960_2.png) [@manton](https://meta.discourse.org/u/manton)
#### Post date: [2024年六月17日 00:40 UTC](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241/44 "2024-06-17T00:40:42Z")

</div>

好的，太棒了。将此标记为已解决。谢谢大家！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年七月17日 00:41 UTC](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241/45 "2024-07-17T00:41:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[上一頁](https://meta.discourse.org/t/upgrading-v2-2-0-beta4-forum-with-unknown-local-changes/310241.md?page=2)
