From 2234ac8202af38a56bf20c0502901fd9dc33eec3 Mon Sep 17 00:00:00 2001 From: KMY Date: Wed, 13 Sep 2023 12:10:07 +0900 Subject: [PATCH] Add precompile note --- INSTALL.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index baf63e8732..3cfb40cca5 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -61,3 +61,31 @@ RAILS_ENV=production bin/tootctl search deploy RAILS_ENV=production bin/tootctl cache clear sudo systemctl start mastodon-web mastodon-streaming mastodon-sidekiq ``` + +## kmyblueのバージョンをアップデートする + +リリースノートを参照して、自分に必要な作業を特定してください。面倒な場合は毎回全部実行してしまっても問題ありません。(プリコンパイルが失敗する可能性があるのでご注意ください) + +``` +# Rubyパッケージアップデート +bundle intall + +# JSパッケージアップデート +yarn install + +# DBマイグレーション +RAILS_ENV=production bin/rails db:migrate + +# プリコンパイル +# うまくいかない場合(エラーは出ないのにWeb表示が崩れる)はclobberしてからprecompile +# それでもうまくいかない場合はsudo systemctl stop mastodon-web +# それでもうまくいかない場合はサーバーOSを再起動する +# それでもうまくいかない場合はおはぎになる +RAILS_ENV=production bin/rails assets:clobber # プリコンパイルがうまくいかない場合 +RAILS_ENV=production bin/rails assets:precompile + +# サーバー再起動 +sudo systemctl restart mastodon-web +sudo systemctl restart mastodon-streaming +sudo systemctl restart mastodon-sidekiq +```