# Automating upgrade of Discourse and plugins

**URL:** https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510
**Category:** Support
**Created:** [4월 30, 2016, 10:21오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510 "2016-04-30T22:21:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SystemZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/systemz/32/88354_2.png) [@SystemZ](https://meta.discourse.org/u/SystemZ)
#### Post date: [4월 30, 2016, 10:21오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510/1 "2016-04-30T22:21:54Z")

</div>

Hi, I’m managing few instances of Discourse installed using this method with Docker [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

I would like to automate upgrading forum version using Ansible, including Discourse plugins.

What commands do I need to execute?  
Is this enough?

```bash
cd /var/discourse
./launcher rebuild

```

I’m not Ruby person and I want to ask before I break something 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 30, 2016, 10:41오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510/2 "2016-04-30T22:41:03Z")

</div>

Yes, just add `git pull` after the `cd` and that should work fine.

---

<div class="post-metadata">

### Author: ![SystemZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/systemz/32/88354_2.png) [@SystemZ](https://meta.discourse.org/u/SystemZ)
#### Post date: [4월 30, 2016, 10:46오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510/3 "2016-04-30T22:46:47Z")

</div>

Awesome, it works, thanks 🙂

```bash
cd /var/discourse
git pull
./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 30, 2016, 10:51오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510/4 "2016-04-30T22:51:22Z")

</div>

The other thing you eventually need to worry about is Docker upgrades. Though that technically is covered by OS updates.

---

<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: [6월 8, 2024, 12:45오후 UTC](https://meta.discourse.org/t/automating-upgrade-of-discourse-and-plugins/43510/5 "2024-06-08T12:45:47Z")

</div>

이 주제는 2960일 후 자동으로 닫혔습니다. 더 이상 새 답변을 작성할 수 없습니다.
