# Procedure to update standard plugins

**URL:** https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418
**Category:** Development
**Created:** [November 23, 2025, 3:51pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418 "2025-11-23T15:51:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [November 23, 2025, 3:51pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/1 "2025-11-23T15:51:01Z")

</div>

I have a small, self-hosted Discourse site created with a standard Docker installation. I’ve installed plenty of plugins into over the years by editing the hooks at the end of containers/app.yml file to git clone a plugin repository. I’ve done a bit of plugin development, as well.

A few months ago, though, many standard plugins were merged into Discourse core. Let’s suppose I fork the whole Discourse repo, edit one of those plugins (say, discourse-math), and get the changes working beautifully in my local development environment. What’s the procedure to get this new plugin into my production Discourse instance?

---

<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: [November 23, 2025, 4:06pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/2 "2025-11-23T16:06:48Z")

</div>

out of interest - why do you need to fork any of the official plugins?

In any case in `app.yml` you can run a command to delete the specific plugin directory then clone your own if you absolutely need to, e.g.:

```plaintext
<in after_code: somewhere >
    - exec:
        cd: $home/plugins
        cmd:
          - rm -r poll
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/myaccount/myplugin-replacement.git

```

you might be able to do this, but check:

```plaintext
<in after_code: somewhere >
    - exec:
        cd: $home/plugins
        cmd:
          - rm -r poll
          - git clone https://github.com/myaccount/myplugin-replacement.git

```

I haven’t been that careful with spaces - make sure indentation is perfect.

---

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [November 23, 2025, 4:15pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/3 "2025-11-23T16:15:57Z")

</div>

> [@merefield](#):
>
> why do you need to fork any of the official plugins?

Because, I’m hoping to update the outdated version of MathJax that’s used by the discourse-math plugin.

OK, it looks to me like this line is what I’m missing:

```
cmd:
  - rm -r poll

```

To be clear, though, what is `poll`? I would think I should remove the old discourse-math directory to prevent the conflicts that I seem to be getting. That is, something like

```
cmd:
  - -r plugins/discourse-math

```

Doesn’t look like a good command to go running willy-nilly. 🙂

---

<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: [November 23, 2025, 4:17pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/4 "2025-11-23T16:17:57Z")

</div>

It doesn’t matter if you make a mistake, just rebuild if you do.

My example was with poll plugin.

Don’t repeat the plugin directory.

---

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [November 23, 2025, 4:20pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/5 "2025-11-23T16:20:40Z")

</div>

@merefield Incidentally, I think you might like the animation on my front page: [https://discourse.marksmath.org/](https://discourse.marksmath.org/)

I used some of your code in the process.

---

<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: [November 23, 2025, 4:22pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/6 "2025-11-23T16:22:04Z")

</div>

Ha, nice, now add a click to user card! 🙂

---

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [November 23, 2025, 5:13pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/7 "2025-11-23T17:13:40Z")

</div>

This did the trick @merefield - thanks a lot !!!

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 23, 2025, 5:18pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/8 "2025-11-23T17:18:34Z")

</div>

> [@mcmcclur](#):
>
> I’m hoping to update the outdated version of MathJax that’s used by the discourse-math plugin.

That might be a change that is #pr-welcome for the official plugin. If you are interested in talking a stab at that for the benefit of everyone relying on the plugin, start a #Contribute > Feature topic to propose it.

---

<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: [December 23, 2025, 5:19pm UTC](https://meta.discourse.org/t/procedure-to-update-standard-plugins/389418/9 "2025-12-23T17:19:28Z")

</div>

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