# 将开发环境中的 Unicorn 端口从 3000 更改

**URL:** <https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737>\
**Category:** Development\
**Created:** [2018 年8 月 14 日 18:07 UTC](https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737 "2018-08-14T18:07:53Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
发布日期： [2019 年12 月 6 日 16:24 UTC](https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737/10 "2019-12-06T16:24:41Z")

</div>

> [@LeoMcA](#):
>
> 或者你认同 @LeoMcA 的观点，即你是一个狂热的 `puts` 调试者，但使用 `rails s` 启动，因此你必须非常费力地在一堆 Rails 日志中才能找到你想要的内容。

我刚刚 [添加了一个选项](https://github.com/discourse/discourse/commit/78969d77199f51395c07a04c35a18bdb5ac8b87c) 来避免这种费力查找，你现在可以使用

```plaintext
DISCOURSE_DEV_LOG_LEVEL="warn" bin/rails s

```

在本地查看 `puts` 语句，而不会被其他日志干扰。

---

_[View the full topic](https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737)._
