June 30th test switchover

Switch over

Database

ssh ubuntu@54.205.236.26 "pg_dump --no-password -U postgres --no-owner --clean --no-acl digcol" > ~/Desktop/db_for_heroku.sql && heroku pg:psql --app scihist-digicoll-production < ~/Desktop/db_for_heroku.sql

SOLR

heroku run rake scihist:solr:reindex --app scihist-digicoll-production

heroku run rake scihist:solr:delete_orphans --app scihist-digicoll-production

Configuration

Turn off staff access to the Heroku box, and set the base URL for the app to the prod URL:

heroku config:set --app scihist-digicoll-production LOGINS_DISABLED=true APP_URL_BASE=https://digital.sciencehistory.org

DNS

  • Remove the A record for digital.sciencehistory.org

  • Point the CNAME for digital.sciencehistory.org to peaceful-basilisk-lhtznpb53fvrt1mv8yt398yy.herokudns.com

  • Remove the A record for staging-digital.sciencehistory.org

  • Point the CNAME for staging-digital.sciencehistory.org to convex-pelican-rsz77g7eof8bvxziiakaer03.herokudns.com

  • Point the CNAME for oh.sciencehistory.org to tranquil-gibbon-icqi7z9ngvnj4toc8g4ialyl.herokudns.com

Switch back DNS

  • Remove CNAME for digital.sciencehistory.org

  • Point the A record for digital.sciencehistory.org to 54.173.133.90

  • Remove CNAME for staging-digital.sciencehistory.org

  • Point the A record for staging-digital.sciencehistory.org to 52.7.156.95

  • Point the CNAME for oh.sciencehistory.org to digital.sciencehistory.org

then:
heroku config:set --app scihist-digicoll-production LOGINS_DISABLED=false APP_URL_BASE=https://scihist-digicoll-production.herokuapp.com