# 安装插件后报错，\*\* failed to bootstrap \*\*

**URL:** <https://meta.discourse.org/t/failed-to-bootstrap/393174>\
**Category:** Self-hosting\
**Created:** [2026年一月11日 09:28 UTC](https://meta.discourse.org/t/failed-to-bootstrap/393174 "2026-01-11T09:28:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [2026年一月11日 10:54 UTC](https://meta.discourse.org/t/failed-to-bootstrap/393174/4 "2026-01-11T10:54:00Z")

</div>

或许一个好主意是在这里分享你的 yml 文件，但请移除敏感信息。最后两个部分可能就足够了。使用预格式化文本小工具，使其显示如下：

```plaintext
## 插件放在这里
## 参见 https://meta.discourse.org/t/19157 获取详情
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## 构建后要运行的任何自定义命令
run:
  - exec: echo "自定义命令开始"
  ## 如果你想设置首次注册的“发件人”电子邮件地址，请取消注释并更改：
  ## 在收到第一封注册邮件后，重新注释该行。它只需要运行一次。
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "自定义命令结束"

```

---

_[View the full topic](https://meta.discourse.org/t/failed-to-bootstrap/393174)._
