cd /opt/pleroma/
sudo git pull
sudo -Hu pleroma mix deps.get
sudo systemctl stop pleroma.service
sudo -Hu pleroma mix ecto.migrate
sudo systemctl start pleroma.service
sudo systemctl status pleroma.service