- Announce deploy in slack
#casa
: "I am about to deploy [staging|prod]".
- If you have any problems (need to rerun a deploy, need to run code in rails console) post to a slack thread about it.
- Do not include any identifying info about youths or any passwords or credentials of course!
- Log into heroku console https://dashboard.heroku.com/teams/rubyforgood/apps
- Download a manual db backup (do this for staging also both for practice and in case there is data in there which we want to be able to retrieve) https://dashboard.heroku.com/apps/casa-production > click add-on "heroku postgres" > Durability > "Create Manual Backup" > Download
- Log into heroku rails console for the environment to which you are about to deploy.
- To make sure your credentials are set up in case you need to clean something up in a hurry
heroku run rails c --app casa-production
orheroku run rails c --app casa-r4g-staging
- Locally, check out the version of the code that is going to be deployed (so if there is a bug you can look at the exact code that has the bug in order to diagnose it)
git checkout <hash from heroku UI>
- Click the deploy button https://dashboard.heroku.com/pipelines/ab5437b7-b7da-4204-bcfc-33bac4466347
- Watch the log until it's done and watch for errors.
- Go to the environment which was just deployed and click around looking for problems. Always check as user type
Volunteer
first because they are the users of which we have the most. - Post in slack that the deploy is done!
- Pat yourself on the back; you did it!