Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Switch over

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.orgSwitch

DNS

...

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

  • 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.comsd

...

Database

ssh ubuntu@54.205.236.26 "pg_dump --no-password -U postgres --no-owner --clean --no-acl --create digcol" > ~/Desktop/db_for_heroku.sql

heroku pg:psql --app scihist-digicoll-production < ~/Desktop/db_for_heroku.sqlReindex and remove orphans

SOLR

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

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

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