# Dev Environment: Missing port leads to broken images

**URL:** <https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388>\
**Category:** Development\
**Created:** [24.Январь.2019 09:32:50 UTC](https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388 "2019-01-24T09:32:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kleinfreund](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Post date:** [24.Январь.2019 09:32:50 UTC](https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388/1 "2019-01-24T09:32:50Z")

</div>

I configured a logo in the site settings, but the logo’s URL is missing the default port, i.e. the logo URL looks like this `http://localhost/uploads/…` rather than `http://localhost:3000/uploads/…`.

I’m starting the development server like this:

```sh
RAILS_ENV=development bundle exec rails server

```

I found that `Discourse.base_url` is set to `"http://localhost"` and in `config/database.yml`, I find this note for the `development.hostnames` key:

```plaintext
### Don't include the port number here.
Change the "port" site setting instead, at /admin/site_settings.

```

However, such a site setting does not exist. What do I do?

---

_[View the full topic](https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388)._
