# 如何操作：discourse-sitemap 已弃用并已合并到 Discourse 的核心中。请将其从您的 app.yml 文件中删除。

**URL:** <https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730>\
**Category:** Self-hosting\
**Created:** [2022年六月12日 17:23 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730 "2022-06-12T17:23:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pandabear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pandabear/32/207556_2.png) [@Pandabear](https://meta.discourse.org/u/Pandabear)\
**Post date:** [2022年六月12日 17:23 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/1 "2022-06-12T17:23:21Z")

</div>

大家好，

有人有关于如何移除 discourse-sitemap 的手册吗？谢谢，或者如果有人能帮我，我将非常感激。

我在控制面板中收到此消息

---

<div class="post-metadata">

**Author:** ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)\
**Post date:** [2022年六月12日 17:58 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/2 "2022-06-12T17:58:31Z")

</div>

你好！ 👋

这是作为插件安装的。如果你看到安装插件的指南 [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-in-discourse/19157?u=maiki%EF%BC%8C%E7%A7%BB%E9%99%A4%E6%8F%92%E4%BB%B6%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E7%BC%96%E8%BE%91%E4%BD%A0%E7%9A%84) `app.yml` 并删除包含 `discourse-sitemap` 插件的那一行。🙂

---

<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:** [2022年六月12日 17:59 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/3 "2022-06-12T17:59:51Z")

</div>

您必须登录到您的服务器并编辑文件，该文件默认位于 `/var/discourse/containers/app.yml`  
任何文本编辑器都可以。  
在文件内容的末尾附近，您应该会看到这一行：

```plaintext
          - git clone https://github.com/discourse/discourse-sitemap

```

删除此行，然后从命令行重建 (`./launcher rebuild app`)，或通过界面更新您的论坛。

* * *

编辑：哦，晚了一分钟！

---

<div class="post-metadata">

**Author:** ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)\
**Post date:** [2022年六月12日 18:12 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/4 "2022-06-12T18:12:19Z")

</div>

> [@Canapin](#):
>
> 编辑：晚了一分钟！

没关系！最好有多种解决方案，这样我就不必全部写出来！

🕶 👍

---

<div class="post-metadata">

**Author:** ![Kjell](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Kjell](https://meta.discourse.org/u/Kjell)\
**Post date:** [2022年七月7日 09:13 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/6 "2022-07-07T09:13:51Z")

</div>

两个建议都使用了

```plaintext
cd /var/discourse
./launcher rebuild app

```

但是，这运行了几分钟后失败，并显示  
`docker: Error response from daemon: driver failed programming external connectivity on endpoint app (a472c81b9b5....): Bind for 0.0.0.0:443 failed: port is already allocated.`

我没有在我的论坛网站上看到任何效果。我错过了什么？对于需要更新 Docker 容器的更新，我发现我必须运行以下命令，而不是 `launcher rebuild app`

```plaintext
cd /var/discourse/
./launcher stop web_only &amp;&amp; ./launcher rebuild data &amp;&amp; ./launcher rebuild web_only

```

但这并不能解决已弃用的 discourse-sitemap。

---

<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:** [2022年七月7日 09:18 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/7 "2022-07-07T09:18:31Z")

</div>

欢迎 Kjell！

抱歉来回移动帖子，我误读了您的问题。

在这种情况下，您应该从 `web_only.yml` 中删除该行，而不是从 `app.yml` 中删除。

---

<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:** [2022年十月27日 21:55 UTC](https://meta.discourse.org/t/how-to-discourse-sitemap-is-deprecated-and-merged-into-discourses-core-please-remove-it-from-your-app-yml-file/229730/8 "2022-10-27T21:55:09Z")

</div>

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