Automating upgrade of Discourse and plugins


(Micha艂 Fr膮ckiewicz) #1

Hi, I鈥檓 managing few instances of Discourse installed using this method with Docker discourse/INSTALL-cloud.md at master 路 discourse/discourse 路 GitHub

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

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

cd /var/discourse
./launcher rebuild

I鈥檓 not Ruby person and I want to ask before I break something :slight_smile:


(Jeff Atwood) #2

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


(Micha艂 Fr膮ckiewicz) #3

Awesome, it works, thanks :slight_smile:

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

(Jeff Atwood) #4

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