# Can't change repo in discourse docker

**URL:** https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376
**Category:** Development
**Created:** [29 באוגוסט,‏ 2016,‏ 12:16pm UTC](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376 "2016-08-29T12:16:39Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [29 באוגוסט,‏ 2016,‏ 9:57pm UTC](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376/5 "2016-08-29T21:57:43Z")

</div>

You need to add a command in `app.yml` to change the `origin` remote to point to your fork, otherwise the base image will still be using the official Discourse repo. You can build your own base image, too, but that’s a lot more effort to keep maintained, and will likely cause Confusion and Delay in the future. So, just add this to your `app.yml`:

```
run:
  - exec:
     cd: /var/www/discourse
     cmd:
         - sudo -u discourse git remote set-url origin https://git.example.com/discourse.git
         - sudo -u discourse git fetch origin
         - sudo -u discourse git checkout origin/master

```

You can also do various other forms of the above git commands, to get the code you want checked out, checked out.

---

_[View the full topic](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376)._
