Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momoseijin/57e40c0652a6dd14e07620efa29a825d to your computer and use it in GitHub Desktop.
Save momoseijin/57e40c0652a6dd14e07620efa29a825d to your computer and use it in GitHub Desktop.
Update from Mastodon v2.8.4 to Mastodon v2.9.0
#Mastodon を止める
systemctl stop mastodon-{web,sidekiq,streaming}.service
#Mastodon ユーザになる
sudo su - mastodon
#Mastodon のディレクトリに戻って v2.9.0 をもってくる
cd ~/live
git fetch
git tag
git checkout v2.9.0
#git branchでチェック
git branch
#こんな表示になる
$ git branch
* (detached from v2.9.0)
master
#リリースノートにあるいつものような処理をすすめる
bundle install --deployment --without development test
yarn install --pure-lockfile
RAILS_ENV=production bundle exec rails db:migrate
RAILS_ENV=production bundle exec rails assets:precompile
#今回のリリースノートにあるキャッシュのクリアをする
RAILS_ENV=production bin/tootctl cache clear
#root に戻って、Mastodon をリスタートして無事立ち上がれば終了
exit
systemctl restart mastodon-{web,sidekiq,streaming}.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment