Last active
June 14, 2019 10:23
-
-
Save momoseijin/57e40c0652a6dd14e07620efa29a825d to your computer and use it in GitHub Desktop.
Update from Mastodon v2.8.4 to Mastodon v2.9.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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