プロジェクト

全般

プロフィール

丼鯖を更新 » 履歴 » リビジョン 2

リビジョン 1 (白林檎 美和, 2020/07/16 02:44) → リビジョン 2/3 (白林檎 美和, 2020/07/16 02:55)

# 丼鯖を更新 
 [Upgrading to a new release](https://docs.joinmastodon.org/admin/upgrading/)と,[リリース案内](https://github.com/tootsuite/mastodon/releases)の “Upgrade notes” に従えばよし。 
 1. 更新に伴い**ぎゃふん**することを,利用者へ告知。 
 1. 丼サービスとDBMSを停止。 

     ``` 
 # service mastodon stop 
 # service redis stop 
 # service postgresql stop 
 ``` 
 1. DBをバックアップ。 
     ``` 
 # $ sudo tar cJvf mastodon-db-<現リリースのタグ>.tar.xz /var/db/{postgres,redis} 
 # Password: <ユーザーmastodonのパスワード> 
 $ sudo chown mastodon:<ユーザーmastodonの所属グループ> mastodon-db-<現リリースのタグ>.tar.xz 
 ``` 
 1. 最新リリースのソースを, gitのリポジトリから取得。 
     ``` 
 $ cd live 
 $ git fetch --tags 
 $ git checkout <最新リリースのタグ> 
 ``` 
 1. Upgrade notesにある作業のうち, “non-Docker” 向けのものを実施。 
     FreeBSD + Dockerで丼鯖を運営している方がいましたら,注意点等を教えていただけるとうれすぃかも。 
 1. DBMSと丼サービスを起動。 
     ``` 
 # service postgresql start 
 # service redis start 
 # service mastodon start 
 ``` 
 1. TLを正しく読み書きできることを確認。 
 1. ぎゃふん完了を告知。