# 更新会影响自定义覆盖吗？

**URL:** https://meta.discourse.org/t/how-would-updating-effect-custom-overrides/97763
**Category:** Support
**Created:** [2018年九月21日 12:58 UTC](https://meta.discourse.org/t/how-would-updating-effect-custom-overrides/97763 "2018-09-21T12:58:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mie\_Goreng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mie_goreng/32/139100_2.png) [@Mie\_Goreng](https://meta.discourse.org/u/Mie_Goreng)
#### Post date: [2018年九月21日 12:58 UTC](https://meta.discourse.org/t/how-would-updating-effect-custom-overrides/97763/1 "2018-09-21T12:58:26Z")

</div>

If I am self-hosting Discourse and I write some custom code into Discourse or change something… what happens when I update? Is it just like a normal app where I can pull and rebase off of master, or will I be forced to rewrite my changes every time?

---

<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: [2018年九月21日 13:37 UTC](https://meta.discourse.org/t/how-would-updating-effect-custom-overrides/97763/2 "2018-09-21T13:37:35Z")

</div>

[Write your custom code as a plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515) (or [a Theme component](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c-4) if very lightweight) for least disruption. Then that code will not be overwritten with each update or rebuild.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018年十月21日 13:39 UTC](https://meta.discourse.org/t/how-would-updating-effect-custom-overrides/97763/3 "2018-10-21T13:39:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
