The site setting `port` can no longer be set based on Rails environment

After update discourse version to 1.9 this error occurred.
How could I set port in development env now?

3 Likes

You can set it through the rails console.

SiteSetting.port = 3000

9 Likes