Versions Compared

Key

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

...

Web
ansible-playbook create_kithe.yml --vault-password-file ~/.ansible_password.txt --private-key=~/.ssh/chf_prod.pem --extra-vars "role=web tier=production" --extra-vars "@group_vars/group_vars/kithe_web_production_override"

Deploy

Deploy master branch to all servers.

(lightbulb) At this stage, if you point the prod URL in your etc/hosts file locally to the web server, you should see an empty production website.

...

  • Point the prod URL in your etc/hosts file locally to the web server.

  • Spin up the downtime server

  • Point the elastic IP for the prod web server to the downtime server

  • Spin down the existing prod serversDeploy master branch to all servers

  • Copy the old database over to the new DB server.

  • Index
    bundle exec cap staging invoke:rake TASK="scihist:solr:reindex"

  • Point elastic IP to the new web server:
    Select "Elastic IPs"
    Select "digicoll-production"
    Actions -> Associate address
    Under the "Resource type", Choose "Instance".
    Fill in the appropriate instance (the prod web server)
    Check "Allow this Elastic IP address to be reassociated if already attached"
    Click "Associate".

...