“What’s going to production?”
“Can I deploy the current master?”
“What the hell is going on here?”
Sounds familiar? Why not just have a rake task that could tell you?
The above rake task will look for the server passed via
ENV['SERVER'] (or use a default) and grab the last deploy status from it’s Heroku releases.
It’ll then open the default browser with the compare url from Github, showing you all the files and commits that have been made between last deploy and current master.
The above can be run with
Note that we do not need to inherit
environment in the Rake task, because we actually do not do anything with the app.
This means that the rake task could just as easily have been a bash script: