-
Notifications
You must be signed in to change notification settings - Fork 4
Deployment Guide
shaunxp20 edited this page Apr 22, 2021
·
1 revision
This is intended to be an up-to-date reference for our deployment procedures.
A deployment typically follows this pattern:
- Look at a diff of what's going to be deployed, scan for correctness and extra steps needed
- Do any pre-deployment steps (like setting up configuration settings in Heroku)
git checkout qa
git pull
heroku pg:backups capture DATABASE_URL -a technovation
bundle exec rails release [major|minor|patch]
- Wait for CircleCI
- Do any final post-deployment steps
- Update ZenHub - move tickets to the "Done" column
The release [major|minor|patch]
task does a bunch of stuff, but it's handy for updating and pushing both qa
and production
to CI. The production
branch on CI will deploy to production on success. Choose which type of release you're doing with these guidelines:
- A patch release for bug fixes and small updates in between new features
- A minor release for entirely new features
- A major release on the last release before opening registration every season
Make sure any new config (in Heroku) is set if that wasn't done beforehand, old config gets removed where appropriate, jobs get scheduled, etc. These things are easy to forget and not captured in an automated way right now, so take care with them.