# 构建时出错：discourse 不支持通过 sprockets 编译 scss/sass 文件

**URL:** https://meta.discourse.org/t/error-when-building-discourse-does-not-support-compiling-scss-sass-files-via-sprockets/305402
**Category:** Self-hosting
**Created:** [2024年四月25日 10:08 UTC](https://meta.discourse.org/t/error-when-building-discourse-does-not-support-compiling-scss-sass-files-via-sprockets/305402 "2024-04-25T10:08:14Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![lllukom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lllukom/32/427100_2.png) [@lllukom](https://meta.discourse.org/u/lllukom)
#### Post date: [2024年六月25日 20:08 UTC](https://meta.discourse.org/t/error-when-building-discourse-does-not-support-compiling-scss-sass-files-via-sprockets/305402/15 "2024-06-25T20:08:50Z")

</div>

这篇文章对我很有帮助 [设置 Discourse 开发环境指南 - Windows 11](https://meta.discourse.org/t/guide-to-setting-up-discourse-development-environment-windows-11/282227)

看起来你应该运行这个：

```bash
DISCOURSE_HOSTNAME=localhost UNICORN_LISTENER=localhost:3000 bin/ember-cli -u

```

它会启动：

1. rails server
2. sidekiq
3. ember-cli

然后 Discourse 将在 localhost:4200 上可用。

可惜的是，这在 [DEVELOPMENT-OSX-NATIVE](https://github.com/discourse/discourse/blob/main/docs/DEVELOPMENT-OSX-NATIVE.md) 和 DEVELOPER-ADVANCED.md 中都没有提到。

---

_[View the full topic](https://meta.discourse.org/t/error-when-building-discourse-does-not-support-compiling-scss-sass-files-via-sprockets/305402)._
