# 当运行启动器引导/重建且 app.yml 不存在时添加 CLI 警告

**URL:** <https://meta.discourse.org/t/add-a-cli-warning-when-running-launcher-bootstrap-rebuild-without-app-yml-present/380001>\
**Category:** Feature\
**Tags:** install\
**Created:** [2025年八月23日 10:53 UTC](https://meta.discourse.org/t/add-a-cli-warning-when-running-launcher-bootstrap-rebuild-without-app-yml-present/380001 "2025-08-23T10:53:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [2025年八月23日 10:53 UTC](https://meta.discourse.org/t/add-a-cli-warning-when-running-launcher-bootstrap-rebuild-without-app-yml-present/380001/1 "2025-08-23T10:53:50Z")

</div>

当新克隆 Discourse 时，仓库会附带 standalone.yml。

记录的工作流程是：

```plaintext
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
./discourse-setup # 创建 app.yml

```

但是，如果有人跳过 ./discourse-setup 而运行

```plaintext
./launcher bootstrap app
# 或
./launcher rebuild app

```

当 app.yml 不存在时，他们会收到一个令人困惑的错误，因为 `app.yml` 不存在，并且 `standalone.yml` 不会被自动识别为起点。

这是新管理员的一个常见障碍，他们认为 `standalone.yml` 已经可以直接使用。

* * *

## 提议：

- 当调用 launcher bootstrap 或 launcher rebuild 并且 `containers/app.yml` 不存在时，CLI 应打印一个清晰的警告，例如：

```plaintext
未找到 containers/app.yml。
您是否应该先运行 ./discourse-setup？
注意：app.yml 是从示例 standalone.yml 文件生成的。

```

这将避免新用户陷入死胡同并在 Meta 上搜索答案。

* * *

这是否是 `launcher` 的一个合理补充？

---

_[View the full topic](https://meta.discourse.org/t/add-a-cli-warning-when-running-launcher-bootstrap-rebuild-without-app-yml-present/380001)._
