# How can I customized my own site

**URL:** https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004
**Category:** Development
**Created:** [7 ביולי,‏ 2020,‏ 8:47am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004 "2020-07-07T08:47:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gaozp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaozp/32/185864_2.png) [@gaozp](https://meta.discourse.org/u/gaozp)
#### Post date: [7 ביולי,‏ 2020,‏ 8:47am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/1 "2020-07-07T08:47:58Z")

</div>

I use an VPS that build my discourse there , and used docker .

I was wonder : how can I edit the source code in my own computer ,and then push this change to the remote machine .

From my opinion :

1. docker save \*\*\*
2. scp xxx@xxxx // copy docker image to my own machine
3. do some change
4. push image to remote machine

I don’t know if there is an more efficient way to develop discourse?

---

<div class="post-metadata">

### Author: ![Qursch](https://avatars.discourse-cdn.com/v4/letter/q/c37758/32.png) [@Qursch](https://meta.discourse.org/u/Qursch)
#### Post date: [7 ביולי,‏ 2020,‏ 10:50am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/2 "2020-07-07T10:50:36Z")

</div>

When installing Discourse, you can clone your own Git Repository (with edits) instead of the Discourse one.  
Just change the link in the middle line here:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/2/f24ce22855608d5d3e705e2cfe4958d597aacc16.png)

---

<div class="post-metadata">

### Author: ![gaozp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaozp/32/185864_2.png) [@gaozp](https://meta.discourse.org/u/gaozp)
#### Post date: [7 ביולי,‏ 2020,‏ 12:02pm UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/3 "2020-07-07T12:02:12Z")

</div>

Yes I know what you mean ,  
but there are two respository 1. discourse\_docker.git 2. discourse.git  
discourse\_docker doesn’t contain source code , and discourse is the source code .

If I use upper way , I’ll have to rebuild docker images each time when I edit source code .

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [7 ביולי,‏ 2020,‏ 12:03pm UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/4 "2020-07-07T12:03:55Z")

</div>

Or … you could save yourself tonnes of pain and write a Theme Component or Plugin containing your changes …

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [8 ביולי,‏ 2020,‏ 11:27am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/5 "2020-07-08T11:27:08Z")

</div>

If you absolutely have to run a fork of the source code (which is definitely not recommended, you can accomplish almost everything with a [plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515)), then you will need to:

- build a new base image with a [different source repository](https://github.com/discourse/discourse_docker/blob/5f7f09539cac22ee995eb394bccf7369b8646efa/image/base/Dockerfile#L138)
- pass the launcher a [different `--run-image` parameter](https://github.com/discourse/discourse_docker/blob/5f7f09539cac22ee995eb394bccf7369b8646efa/launcher#L91)

---

<div class="post-metadata">

### Author: ![gaozp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaozp/32/185864_2.png) [@gaozp](https://meta.discourse.org/u/gaozp)
#### Post date: [9 ביולי,‏ 2020,‏ 10:04am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004/6 "2020-07-09T10:04:34Z")

</div>

Now I know that , maybe I think in the wrong way . I can just write a plugin that contains my change .

Thank you guys!
