Skip to content

Instantly share code, notes, and snippets.

@momoseijin
Created December 24, 2018 02:12
Show Gist options
  • Save momoseijin/6dc8dde4974fd7fa968d4bf2bc7c20a2 to your computer and use it in GitHub Desktop.
Save momoseijin/6dc8dde4974fd7fa968d4bf2bc7c20a2 to your computer and use it in GitHub Desktop.
#Mastodonのおいてあるディレクトリに移る
cd ~/live
#マスターに移り、最新版を持ってくる
git checkout master
git pull
git checkout v2.2.0
#いつものようにインストール作業をする
gem install bundler
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 bundle exec rails mastodon:maintenance:remove_regeneration_markers
#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