diff --git a/scripts/upgrade b/scripts/upgrade index e734e97..0c469bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,10 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live +version=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | grep tag_name | cut -d\" -f4) 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