Skip to content

Instantly share code, notes, and snippets.

@lantrix
Last active January 15, 2024 11:59
Show Gist options
  • Save lantrix/8e095627ec469ef9e2736e3f7b5ce332 to your computer and use it in GitHub Desktop.
Save lantrix/8e095627ec469ef9e2736e3f7b5ce332 to your computer and use it in GitHub Desktop.
# Backend
# You should always check the release notes/changelog in case there are config deprecations, special update steps, etc.
# https://gitlab.com/soapbox-pub/rebased/-/blob/main/CHANGELOG.md
cd /opt/pleroma/
sudo -Hu pleroma bash -i
git pull #on main branch
MIX_ENV=prod mix deps.get # pulls in any new dependencies
exit # back to user
sudo systemctl stop pleroma.service
sudo -Hu postgres pg_dump -d pleroma --format=custom -f /tmp/pleroma.pgdump
sudo -Hu pleroma bash -i
MIX_ENV=prod mix ecto.migrate # performs database migrations, if there were any
exit
sudo systemctl start pleroma.service
sudo systemctl status pleroma.service
# Frontend
# You should always check https://gitlab.com/soapbox-pub/soapbox/-/blob/main/CHANGELOG.md in case there are deprecations, special update changes, etc.
sudo -Hu pleroma bash -i
cd $HOME
curl -O https://dl.soapbox.pub/main/soapbox.zip
rm -rf /data/pleroma/instance/static/*
busybox unzip soapbox.zip -o -d /data/pleroma/instance/static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment