- ruby バージョンアップ用
- mastodon user
ruby -v
cd ~/.rbenv/plugins/ruby-build
get pull
git pull
cd ~/.rbenv
git pull
rbenv install –list | grep 2.6.2
rbenv install 2.6.1
rbenv global 2.6.1
rbenv versions
ruby -v
- mastodon 指定タグ取得(2,7.4 → 2.8.0)
- mastodon user
cd /home/mastodon/live
git describe –tags # v2.7.4
git fetch
git stash
git checkout v2.8.0
- mastodon アップグレード(2.8.0)
- mastodon user
gem update –system
bundle install && yarn install
RAILS_ENV=production bundle exec rails db:migrate
RAILS_ENV=production bundle exec rails assets:precompile
\\\\\\\\\\\\\\\\\\\\\\\\\\
\ postgresql 再起動
\ root
\\\\\\\\\\\\\\\\\\\\\\\\\\
systemctl restart postgresql-11.service
systemctl status postgresql-11.service
\\\\\\\\\\\\\\\\\\\\\\\\\\
\ mastodon 再起動
\ root
\\\\\\\\\\\\\\\\\\\\\\\\\\
systemctl stop mastodon-{web,sidekiq,streaming} redis nginx
systemctl start mastodon-{web,sidekiq,streaming} redis nginx
systemctl restart mastodon-{web,sidekiq,streaming} redis nginx