curationexperts / cypripedium

A Hyrax 3 application for the Federal Reserve Bank of Minneapolis
2 stars 3 forks source link

Upgrade dry-run #197

Closed RachelDCE closed 5 years ago

RachelDCE commented 5 years ago

STORY As a system owner I would like to dry-run the upgrade on a staging environment

DETAILS

ACCEPTANCE

val99erie commented 5 years ago

For the Document the upgrade process part of this story, we should put together a formal checklist of the exact commands we need to run during the upgrade.

I'll add some notes here for all the changes I know about so far. Please update this list or add more comments if you know of any other things we need to do during the release.

RAILS_ENV=production bundle exec rails db:migrate

RAILS_ENV=production bundle exec rails hyrax:default_collection_types:create

RAILS_ENV=production bundle exec rails hyrax:migrate:add_collection_type_and_permissions_to_collections

Since this rake task might take awhile to run, you probably want to run it as a background job with nohup so that it won't stop running if you get disconnected from the server. This command will redirect the output to a file called solr_reindex.log, so you can view the log file to see if it is done running.

RAILS_ENV=production nohup bundle exec rake reindex 2>&1 > solr_reindex.log &
bess commented 5 years ago

Upgrade checklist here: https://docs.google.com/document/d/1Z312B-cV985rI0ZMidvrkgq3liGZtz5CPv3CNU5eMSs/edit?usp=sharing