Skip to content

Instantly share code, notes, and snippets.

@vanyasem
Last active December 1, 2018 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanyasem/f1978fd5a987ed97cb6c4b998343bc4a to your computer and use it in GitHub Desktop.
Save vanyasem/f1978fd5a987ed97cb6c4b998343bc4a to your computer and use it in GitHub Desktop.
Mastodon Upgrade
cd ~/.rbenv
git pull
cd ~/.rbenv && src/configure && make -C src
# Check if rbenv is correctly installed
type rbenv
#echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
#echo 'eval "$(rbenv init -)"' >> ~/.bashrc
#exec bash
cd ~/.rbenv/plugins/ruby-build
git pull
cd ~/live
git fetch --tags
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
#RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.5.3
#rbenv global 2.5.3
#RAILS_ENV=production bundle exec rails db:migrate
RAILS_ENV=production bundle exec rails assets:precompile
#gem install bundler --no-ri --no-rdoc
#bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test
#yarn install --pure-lockfile
exit
sudo systemctl restart mastodon-*
#sudo systemctl restart mastodon-sidekiq
#sudo systemctl reload mastodon-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment