I am a Sr. Software Developer at Oracle Cloud. The opinions expressed here are my own and not necessarily those of my employer.
How do you know which specific version of your code is running on each server? Even with automated deployment tools (chef, capistrano, puppet) it’s easy to make a mistake and deploy the wrong code. And then you are wondering why the new feature is not working.
Sometimes you might need to deploy different versions of your code to different servers (perfromance or A/B testing). In larger enterprises you often have dedicated deployment systems where each deploy gets recorded. But I want to browse to a webpage w/in my app and see the git revision / commit message. Here is one simple way do that for Rails apps.
With capistrano workflow you can create a hook
This will create/update this file on every deploy. Then you simply need to display the file contents:
Don’t forget to add