-
Notifications
You must be signed in to change notification settings - Fork 7
Deploy Notes for Next Release
Adam Wead edited this page Jun 1, 2021
·
7 revisions
Do everything up until deploy
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
FileResource.where('uuid IS NULL').count
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.