LoginSignup
6
2

More than 5 years have passed since last update.

さくらクラウドのMastodnを更新(1.2.2 -> 1.3.2)

Last updated at Posted at 2017-04-30

トラブルもなく大したことはないのですが、忘備録です。

バージョン確認

スクリプト動作詳細を参照して確認すると

* (detached from v1.2.2)
  master

とりあえずサービス停止

# systemctl stop mastodon-sidekiq
# systemctl stop mastodon-streaming
# systemctl stop mastodon-web

更新作業

Mastodonのドキュメントリリースノートを参照して

*Mastodonのドキュメントみると、わざわざサービス止めなくていい感じ!?

# su - mastodon
$ cd live
$ git fetch
$ git checkout $(git tag | tail -n 1)
$ RAILS_ENV=production bundle exec rails db:migrate
Could not find globalid-0.4.0 in any of the sources
Run `bundle install` to install missing gems.

足りないって言われたから指示通り入れる。

$ bundle install

d6rkaizさんよりアドバイス貰いましたので追記です。

RAILS_ENV=production bundle exec rails assets:clobber

を行ってから、precompileした方が良い。
assetsの中をクリアしてからprecompileが良いみたい。
Ruby関係は無知なので、アドバイス有り難いです。

それから、リリースノートにしたがって precompileが必要なので行う。

$ yarn install --pure-lockfile
$ RAILS_ENV=production bundle exec rails assets:precompile

サービス起動

# systemctl start mastodon-sidekiq
# systemctl start mastodon-streaming
# systemctl start mastodon-web

1.jpg

OK:sunny:

6
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2