How to update Pleroma

cd /opt/pleroma
sudo -Hu pleroma git fetch --all

visit https://git.pleroma.social/pleroma/pleroma/-/releases to find the latest stable version, e.g v2.9.1, then run:

sudo -Hu pleroma git checkout v2.9.1
systemctl stop pleroma
sudo -Hu pleroma MIX_ENV=prod mix ecto.migrate
systemctl start pleroma

If you’re using soapbox as the frontend, run the following commands to upgrade soapbox to the latest version:

cd 
curl -O https://dl.soapbox.pub/main/soapbox.zip
busybox unzip soapbox.zip -o -d /opt/pleroma/instance/static