# 未初始化的常量

**URL:** https://meta.discourse.org/t/uninitialized-constant/296269
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [2024年二月22日 01:11 UTC](https://meta.discourse.org/t/uninitialized-constant/296269 "2024-02-22T01:11:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [2024年二月22日 01:11 UTC](https://meta.discourse.org/t/uninitialized-constant/296269/1 "2024-02-22T01:11:35Z")

</div>

你好，有这个：

> lib/discourse.rb:545:in `current\_hostname’: uninitialized constant Discourse::SiteSetting (NameError)

[这里](https://pastebin.com/riYtPLYL) 是命令

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [2024年二月22日 01:26 UTC](https://meta.discourse.org/t/uninitialized-constant/296269/2 "2024-02-22T01:26:44Z")

</div>

@supermathie

你知道可能是什么问题吗？

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年二月22日 02:50 UTC](https://meta.discourse.org/t/uninitialized-constant/296269/3 "2024-02-22T02:50:46Z")

</div>

您有一个不受支持的安装。也许是这样的？

> [@Current\_hostname: uninitialized constant](https://meta.discourse.org/t/current-hostname-uninitialized-constant/225742/2?u=lilly):
>
> Use launcher to build the image and launch it with the env variables needed to make it work. You can get them with a launcher command that shows just the startup call (look at launcher code to get it). You can either build it against the live database and then launch it, or build it against a temporary database and then migrate and precompile assets after you launch. All of that is beyond the scope of support available here. Or you could use bitnami (also not supported here).

请不要@提及个别工作人员。

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [2024年二月22日 15:08 UTC](https://meta.discourse.org/t/uninitialized-constant/296269/5 "2024-02-22T15:08:07Z")

</div>

正如我之前所说，我想单独使用 Discourse……

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年二月22日 15:12 UTC](https://meta.discourse.org/t/uninitialized-constant/296269/6 "2024-02-22T15:12:31Z")

</div>

我不知道那是什么意思，根据你的系统，有多种方法可以安装本地开发实例。

事实是，你有一个不受 Discourse 支持或推荐的安装。这里有很多主题可以搜索解决方案，如果你提出问题并且人们知道问题所在，他们通常会提供帮助。

请不要在 @ 中提及 Discourse 的工作人员来寻求帮助。谢谢。
