Skip to content

Instantly share code, notes, and snippets.

Last active Dec 1, 2018
What would you like to do?
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
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