Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #Mastodon を止める
  2. systemctl stop mastodon-{web,sidekiq,streaming}.service
  3.  
  4. #Mastodon ユーザになる
  5. sudo su - mastodon
  6.  
  7. #Mastodon のディレクトリに戻って v2.9.0 をもってくる
  8. cd ~/live
  9. git fetch
  10. git tag
  11. git checkout v2.9.0
  12.  
  13. #git branchでチェック
  14. git branch
  15.  
  16. #こんな表示になる
  17. $ git branch
  18. * (detached from v2.9.0)
  19. master
  20.  
  21. #リリースノートにあるいつものような処理をすすめる
  22. bundle install --deployment --without development test
  23. yarn install --pure-lockfile
  24. RAILS_ENV=production bundle exec rails db:migrate
  25. RAILS_ENV=production bundle exec rails assets:precompile
  26.  
  27. #今回のリリースノートにあるキャッシュのクリアをする
  28. RAILS_ENV=production bin/tootctl cache clear
  29.  
  30. #root に戻って、Mastodon をリスタートして無事立ち上がれば終了
  31. exit
  32. systemctl restart mastodon-{web,sidekiq,streaming}.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement