# Changing hostname

**URL:** https://meta.discourse.org/t/changing-hostname/260954
**Category:** Self-hosting
**Created:** [April 7, 2023, 4:20pm UTC](https://meta.discourse.org/t/changing-hostname/260954 "2023-04-07T16:20:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![ibahnasy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibahnasy/32/301452_2.png) [@ibahnasy](https://meta.discourse.org/u/ibahnasy)
#### Post date: [April 7, 2023, 6:38pm UTC](https://meta.discourse.org/t/changing-hostname/260954/4 "2023-04-07T18:38:47Z")

</div>

I need to have the same version on that instance to test upgrading to the latest version so if succeeded, will preform the upgrade on production.

> If you’ve got something else doing the https resolution then you might be able to avoid the rebuild and just do the other stuff in [Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-your-discourse/16098).  
> HTTPS is handled on a load balancer, but that link saying I have to rebuild after modifying app.yml.

- So if I will pin the versions, for `discourse_docker`, I should checkout the current commit hash?
- And for Discourse app inside the container, I should also set it’s current commit hash using `version: <commit_hash>` in app.yml?
- What about plugins?

---

_[View the full topic](https://meta.discourse.org/t/changing-hostname/260954)._
