# Alterar a porta do Unicorn de 3000 no desenvolvimento

**URL:** <https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737>\
**Category:** Development\
**Created:** [Agosto 14, 2018, 6:07pm 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:** 1

<div class="post-metadata">

**Author:** ![typeoneerror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/typeoneerror/32/80817_2.png) [@typeoneerror](https://meta.discourse.org/u/typeoneerror)\
**Post date:** [Agosto 14, 2018, 6:07pm UTC](https://meta.discourse.org/t/change-unicorn-port-from-3000-in-development/94737/1 "2018-08-14T18:07:54Z")

</div>

A recent [commit](https://github.com/discourse/discourse/commit/81c68491941bb7ac8760bd020e7e361acd0501bc) changed the “unicorn port” from 9292 to 3000. I don’t see any way to change the port now and this is confliciting with another rails site I have running on 3000. Previously, I’ve been running discourse as `bundle exec rails server --port=3001`, but this no longer works as unicorn is now grabbing 3000.

Tried a few combinations of `UNICORN_PORT=3001`, `--port=3001`, changing source code of `unicorn.conf`, but end up with:

> I, [2018-08-14T11:26:11.496753 #63852] INFO – : listening on addr=0.0.0.0: **3000** fd=20

Each time.

Any way to work around this?

---

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