Last active
December 1, 2018 08:26
-
-
Save vanyasem/f1978fd5a987ed97cb6c4b998343bc4a to your computer and use it in GitHub Desktop.
Mastodon Upgrade
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
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