Created
December 24, 2018 02:05
-
-
Save momoseijin/bef1ee84558c1b754577db7790b07564 to your computer and use it in GitHub Desktop.
This file contains 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を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodonユーザになる | |
sudo su - mastodon | |
#Mastodonのおいてあるディレクトリに移る | |
cd ~/live | |
#git fetchで最新のデータを引いてくる | |
git fetch | |
#git stashで現在のデータを一時退避 | |
git stash | |
#git tagでタグの確認 | |
git tag | |
#git checkoutで目的のバージョン指定(今回はv2.4.5) | |
git checkout v2.4.5 | |
#git stash popで退避データの削除 | |
git stash pop | |
#git branchで念のため現在のブランチが指定のもの(今回はv2.4.5)になっているか確認 | |
git branch | |
#こんな表記になればいいらしい | |
$ git branch | |
* (detached from v2.4.5) | |
master | |
#あとはいつも通り | |
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 | |
#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