# How my changes can take effect on Discourse with docker

**URL:** https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998
**Category:** Support
**Created:** [June 14, 2015, 3:41pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998 "2015-06-14T15:41:56Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SamiBoy](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@SamiBoy](https://meta.discourse.org/u/SamiBoy)
#### Post date: [June 14, 2015, 3:41pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/1 "2015-06-14T15:41:56Z")

</div>

Hello everybody,  
i’m newbie on docker, and i was wondering how can my changes from other repo take effect  
i tried only with one file after instaling discourse with docker  
These are my steps to implement the changes:  
cd /var/discourse  
./launcher enter app  
cd /var/www/discourse  
su discourse  
git remote add discourse2 [https://github.com/XXX/discourse2.git](https://github.com/XXX/discourse2.git)  
git fetch discourse2  
git checkout discourse2/master – config/locales/client.fa\_IR.yml

And then restarted the app… but nothing happend

---

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [June 14, 2015, 4:07pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/2 "2015-06-14T16:07:33Z")

</div>

What are you trying to accomplish? It’s not clear in your post. Are you trying to setup multisite?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 14, 2015, 4:12pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/3 "2015-06-14T16:12:35Z")

</div>

If it is only to have Farsi as the site’s Locale, AFAIK no GitHub magic is required as this can be done in the ACP

---

<div class="post-metadata">

### Author: ![SamiBoy](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@SamiBoy](https://meta.discourse.org/u/SamiBoy)
#### Post date: [June 14, 2015, 4:17pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/4 "2015-06-14T16:17:38Z")

</div>

i’m trying to customize discourse using my own github repo  
After fetching my code… should i just restart the app with ./launcher restart app  
because that did nothing, when i tried it with the example above didn’t work, it’s lstill uses the old client.fa\_IR.yml not the new one

---

<div class="post-metadata">

### Author: ![Abdul\_Munim\_Zahid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_munim_zahid/32/39786_2.png) [@Abdul\_Munim\_Zahid](https://meta.discourse.org/u/Abdul_Munim_Zahid)
#### Post date: [June 14, 2015, 4:17pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/5 "2015-06-14T16:17:50Z")

</div>

I think that OP is trying to make custom changes in the code. Your best option will be to fork discourse repo and then make changes on github.

And the use this code to have your production site pull from your repo:

[https://meta.discourse.org/t/how-to-install-my-customized-repo-of-discourse-on-production-server/23364/5?u=abdul\_munim\_zahid](https://meta.discourse.org/t/how-to-install-my-customized-repo-of-discourse-on-production-server/23364/5)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 14, 2015, 4:26pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/6 "2015-06-14T16:26:04Z")

</div>

> [@Abdul\_Munim\_Zahid](#):
>
> Your best option will be to fork discourse repo

Maybe for testing, but IIRC the general consensus is that forking is generally not such a good idea for a live production site.

If the only difference is that a custom version of fa\_IR is wanted IMHO this would best be done as a plugin.

---

<div class="post-metadata">

### Author: ![Abdul\_Munim\_Zahid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_munim_zahid/32/39786_2.png) [@Abdul\_Munim\_Zahid](https://meta.discourse.org/u/Abdul_Munim_Zahid)
#### Post date: [June 14, 2015, 5:16pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/7 "2015-06-14T17:16:47Z")

</div>

I have a feeling that OP wants to edit more files too but the Fransi file was just a test case since.

> [@SamiBoy](#):
>
> i tried only with one file after installing discourse

And yep, generally forking isnt a good idea unless you are as big as sitepoint!  
Btw your plugin tutorials are nice. Helped me a lot!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 15, 2015, 12:33am UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/8 "2015-06-15T00:33:06Z")

</div>

> [@Abdul\_Munim\_Zahid](#):
>
> And yep, generally forking isnt a good idea unless you are as big as sitepoint!

no that is not accurate.

Generally, forking is not a good idea _period_. Our recommendation is always to use plugins to extend Discourse, forking is expensive to maintain and impractical in most cases.

---

<div class="post-metadata">

### Author: ![SamiBoy](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@SamiBoy](https://meta.discourse.org/u/SamiBoy)
#### Post date: [June 15, 2015, 8:15pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/9 "2015-06-15T20:15:23Z")

</div>

i’m sorry, but this is not the subject here  
In Dev environment, I could cease the rails server to reload the config files. Is there something like the rails server within docker?  
(other than ./launcher restart app… it does not reload the config files)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 15, 2015, 10:01pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/10 "2015-06-15T22:01:23Z")

</div>

You can restart all the ruby workers with.

```plaintext
./launcher enter app
sv restart unicorn

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:46pm UTC](https://meta.discourse.org/t/how-my-changes-can-take-effect-on-discourse-with-docker/29998/11 "2024-06-08T12:46:05Z")

</div>

This topic was automatically closed after 3281 days. New replies are no longer allowed.
