#!/bin/bash cd ~/live git pull bundle install && yarn install RAILS_ENV=production SKIP_POST_DEPLOYMENT_MIGRATIONS=true bundle exec rails db:migrate RAILS_ENV=production bundle exec rails assets:precompile sudo systemctl reload mastodon-web && sudo systemctl restart mastodon-streaming && sudo systemctl restart mastodon-sidekiq-{default,ingress,pull,push,mailers,scheduler} RAILS_ENV=production bin/tootctl cache clear RAILS_ENV=production bundle exec rails db:migrate