Pages

Sunday, November 4, 2018

Manually Update Discourse and Docker Using Rebuild Command


Yesterday, I discovered that Ogbongeblog Planet was running on an outdated discourse installation which can only be updated manually via the command line.

To update discourse, you are expected to ssh into your server using your favorite ssh client and run this :

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

Unfortunately, after running “git pull”, I encountered the error message below :

fatal : unable to access https://github.com/discourse/discourse_docker.git/’: Peer reports incompatible or unsupported protocol version.

I fixed it by running “yum update” command

After running the rebuild command, I was alerted that the docker is outdated. Hence, I updated it and re-run the rebuild command.

How To Update Docker?

One way to do that is via the Docker script here (it will warn about an existing install but should upgrade ok):

wget -qO- https://get.docker.com/ | sh

After updating docker, you can exit your ssh client, ssh into the server again and run this again :

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

update discourse via ssh vps hosting

 

If no issues, your discourse installation will be updated to the latest and you will be able to confirm this via your admin dashboard.

You can follow discussion on how to manually update discourse to the latest via the official discourse forum.

No comments:

Post a Comment