diff --git a/scripts/upgrade b/scripts/upgrade index 6726f92..0c469bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,13 +67,28 @@ fi # add additional package for upgrade ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-9.4 +# Install ruby 2.4.2 for release 2.0 +sudo su - $app < 1.4.2 migration prepare_for_foreign_keys is needed -RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile RAILS_ENV=production bundle exec rails db:migrate