In rails, I would like to find an incremental number that increases or at least changes with everyone deployment or git commit/push.
I need this for cache busting the CDN.
config.action_controller.asset_path = proc { |asset_path|
"/rel-#{RELEASE_NUMBER}#{asset_path}"
}
Any suggestions? Thanks
Something like?
You could do one better with this approach and get the SHA for different folders/files.
Then call it like
release_sha('/public/images')for the latest SHA for that folder.