Process documentation
...
bundle exec cap staging maintenance:enable REASON="a test of maintenance mode" UNTIL="12pm Eastern Time"
- Deploy as usual / desired
- Do anything else needed on the server that required the downtime
bundle exec cap staging maintenance:disable
...
(Don't do this on prod!)
Shut down tomcat
rm -rf /opt/fedora-data/*rm -rf /opt/solr/collection1/data/*
Delete database stuff (notifications, mostly)
psql -U chf_pg_hydra -d chf_hydra
delete from mailboxer_receipts where created_at < '2015-11-9';
delete from mailboxer_notifications where created_at < '2015-11-9';
delete from mailboxer_conversations where created_at < '2015-11-9';
Building a new machine on AWS with Ansible
...