Skip to content

Instantly share code, notes, and snippets.

@momoseijin
Created December 24, 2018 02:23
Show Gist options
  • Save momoseijin/f7908aa721d65dab844fc2c110fbeb03 to your computer and use it in GitHub Desktop.
Save momoseijin/f7908aa721d65dab844fc2c110fbeb03 to your computer and use it in GitHub Desktop.
$ cd /home/mastodon/live
$ mv yarn.lock ../ (うちではyarn.lockファイルをどかさないとgem install bundlerできないので、普通にできる人はやらなくていいです)
$ git branch
$ git checkout master
$ git pull
$ git checkout v2.0.0
$ gem install bundler
$ bundle install --deployment --without development test
$ yarn install
$ RAILS_ENV=production bundle exec rails db:migrate (今回DBの変更が大きくここでいろんなファイルが書き換わる)
$ RAILS_ENV=production bundle exec rails assets:precompile (ここがメッチャ早くなった)
$ exit
# systemctl restart mastodon*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment