How I’ve updated my self-hosted (Debian-Based OS) Pleroma installation

Hello beautiful peoples!

I have used this documentation to self-host Pleroma instance on one of my “Oracle Always FreeUbuntu (thanks BlueB) machines:

https://docs-develop.pleroma.social/backend/installation/debian_based_en/

Works great, I rarely used it but never noticed any issues. Except for one thing. I had no idea how to update I found the official update guide (for from source installations (using git)) lacking.

https://docs-develop.pleroma.social/backend/administration/updating/

sudo -Hu pleroma git checkout v2.6.0
error: pathspec ‘v2.6.0’ did not match any file(s) known to git

Here is how I did it.

systemctl stop pleroma
cd /opt/pleroma/
sudo -Hu pleroma MIX_ENV=prod git show-ref

Chose the latest version from the list and use it in the next command.

sudo -Hu pleroma MIX_ENV=prod git checkout v2.6.x
sudo -Hu pleroma MIX_ENV=prod git pull
sudo -Hu pleroma mix deps.get
sudo -Hu pleroma MIX_ENV=prod mix ecto.migrate
systemctl start pleroma

And… Voila.

I hope this helps!

Catch you on the flip side,

AndrzejL

Avatar photo

AndrzejL

“Some men just want to watch the world burn.”

Leave a Reply

Your email address will not be published. Required fields are marked *