21 November 2012
Currently I’m working on one of our client’s project. It require us to deploy on heroku. I would love to use the same deployment workflow that we use in SAYS. My initial plan was to write simple rake task to tag and push to heroku. Of course, I googled it up first, see how others approached deployment on heroku.
Most solutions that I found are using production/staging branch. Which is not what I wanted. That’s when I stumbled upon heroku_san. I remember reading about it but didn’t bother to test it out. There’s a good tutorial here. But I don’t use CI for this project, so I simplify it a bit.
I added tag to heroku.yml for production stage, staging remains the same.
Then I just paste from the example to heroku.rake, I removed ci from STAGES.
rake staging deploy will deploy to staging, then tag it with
rake production deploy will deploy anything tagged as