Deploy Notes for Next Release - psu-libraries/scholarsphere GitHub Wiki

For 4.8.0

The Day Before

Do everything up until deploy

During the Maintenance Window

Put app in read-only mode

vault login -method oidc
vault kv patch secret/app/scholarsphere/prod READ_ONLY=true
k rollout restart deployment/scholarsphere

Verify we're in read-only mode and merge the PR in scholarsphere-config

Verify the version we want is deployed: https://scholarsphere.psu.edu/health/version.json

Login in to the pod

k exec -it deployment/scholarsphere -- /app/bin/vaultshell

Launch the rails console

bundle exec rails c

Check migration

FileResource.where('uuid IS NULL').count

Delete and Reindex

require 'scholarsphere/cleaner'
Scholarsphere::Cleaner.clean_solr

From the shell, reindex everything

bundle exec rake solr:reindex_all

Wait for reindexing to finish: https://scholarsphere.psu.edu/admin/sidekiq

Turn off read-only mode

vault kv patch secret/app/scholarsphere/prod READ_ONLY=false
k rollout restart deployment/scholarsphere

Verify things are working.