#实例维护 #长毛象运维
#备忘
升级Mastodon版本的流程
#切换到mastodon用户
su - mastodon ; cd live
#从远程仓库拉取
git pull
#更新依赖
bundle install
#迁移数据库结构
RAILS_ENV=production bundle exec rails db:migrate
#预编译静态资源
RAILS_ENV=production bundle exec rails assets:precompile
#返回root用户
exit
#重载web,重启sidekiq与streaming
systemctl reload mastodon-web.service
systemctl restart mastodon-sidekiq.service
systemctl restart mastodon-streaming.service