Hi guys!
I want to show in a page of my app the GIT commit hash. I read
somewhere that the value is stored in the variable
ENV['COMMIT_HASH']
but if I display that variable on my app the hash I get is a few
commits older than the latest despite my latest changes are deployed
correctly. Looking inside the ENV variable on the heroku console I
found this
ENV['HEROKU_SLUG'] = '362262_bb8ba19_557e'
I can recognize bb8ba19 as my real latest commit hash!
why COMMIT_HASH has not the current version? how the HEROKU_SLUG
variable is built? can I trust that its format will remain consistent
and split('_') it to get my hash commit?
Thank you!
Mauricio
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.