Add your current Git SHA to your Rails or Sinatra app response headers.
That you use git to track your source code
Add it to your Gemfile, you are using bundler, right?
Install the gem:
gem install sasha
Add to bottom of environment.rb:
Require it on config.ru after sinatra/base
require 'sinatra/base' require 'sasha'
$ curl -I http://www.example.net | grep X-Git-Sha
Your should see something like
About the Author
Crowd Interactive is an American web design and development company that happens to work in Colima, Mexico. We specialize in building and growing online retail stores. We don’t work with everyone – just companies we believe in. Call us today to see if there’s a fit. Find more info here!