Created
December 24, 2018 02:15
-
-
Save momoseijin/d1d0ebc8c95cf6b7b15c74da57603b56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Mastodonユーザになる | |
sudo su - mastodon | |
#Mastodonのおいてあるディレクトリに移る | |
cd ~/live | |
#マスターに移り、最新版を持ってくる | |
git checkout master | |
git pull | |
git checkout v2.2.0 | |
#上記までは一緒で | |
#変えたのはここで、gem installの前にupdateする | |
gem update --system | |
gem update | |
#ここから下は先程と同じように | |
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</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment