Mise-à-jour Mastodon 1.4.1 vers 2.1.0
1/ Arrêt des services Mastodon.
admin@server01mas:~$ su root@server01mas:/home/admin# systemctl stop mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service root@server01mas:/home/admin# update root@server01mas:/home/admin# apt-get install libicu-dev libidn11-dev libidn2-0-dev root@server01mas:/home/admin# exit
2/ Nouvelle version de Ruby.
admin@server01mas:~$ rm .rbenv/ -rf admin@server01mas:~$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv admin@server01mas:~$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build admin@server01mas:~$ rbenv install 2.4.2 mastodon@server01mas:~$ rbenv global 2.4.2
3/ Récupération de la version 2.1.0 de Mastondon.
mastodon@server01mas:~$ cd live/ mastodon@server01mas:~/live$ git fetch --all mastodon@server01mas:~/live$ git checkout tags/v2.1.0 -b v2.1.0 mastodon@server01mas:~/live$ git status
4/ Installation de Rails.
mastodon@server01mas:~/live$ gem install rails mastodon@server01mas:~/live$ gem install charlock_holmes -v '0.7.5 mastodon@server01mas:~/live$ gem install idn-ruby -v '0.1.0' mastodon@server01mas:~/live$ bundle install
5/ Installation de Yarn.
mastodon@server01mas:~$ curl -o- -L https://yarnpkg.com/install.sh | bash mastodon@server01mas:~$ exit root@server01mas:/home/admin# su mastodon mastodon@server01mas:/home/admin$ cd ~/live mastodon@server01mas:~/live$
6/ Compilation des assets.
mastodon@server01mas:~/live$ RAILS_ENV=production bundle exec rails assets:clean mastodon@server01mas:~/live$ RAILS_ENV=production bundle exec rails assets:precompile mastodon@server01mas:~/live$ RAILS_ENV=production bundle exec rake mastodon:maintenance:prepare_for_foreign_keys
7/ Migration de la base de données.
mastodon@server01mas:~/live$ RAILS_ENV=production bundle exec rails db:migrate
8/ Autre migration.
mastodon@server01mas:~/live$ RAILS_ENV=production bundle exec rails mastodon:maintenance:migrate_photo_preview_cards
9/ Démarrage des services Mastodon.
mastodon@server01mas:~/live$ su root@server01mas:/home/mastodon/live# systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service root@server01mas:/home/mastodon/live# exit mastodon@server01mas:~/live$
Comments are closed, but trackbacks and pingbacks are open.