Hi Clément, I did notice the environment variable: ENV["LAST_GIT_BY"]
But nothing is stopping you from populating the sha into a config variable upon deploy. On our staging servers we go so far as to display our git information in a status bar. I remember heroku having something like this once upon a time. But that may have been in the heroku 1.0 timeframe. --Keenan On Wednesday, May 11, 2011 at 7:24 AM, Clément wrote: > Indeed heroku console is a nice friend, thanks for the noticing git > binaries :) > > But running on a dyno, app is extracted from its repo (thanks Oren) > > I'm sometimes using a simple heroku-lovely-git-pure workflow (so no > deploy task). > > I would love add locally a post-commit hook on git which would set an > env variable. > Once deployed my app would use the one on Heroku. > > It's like Heroku team is already almost doing this (thanks TJ ; I > didn't noticed them) : > ENV["COMMIT_HASH"] > ENV["LAST_COMMIT_BY"] > > Why not another little one, `git describe --tag`, which would be > (objectively) useful in many use cases ? > > Thanks > :) > > Clément > > On May 10, 5:14 pm, Keenan Brock <kee...@thebrocks.net> wrote: > > Hi Clem, > > > > heroku cosole is your friend. > > > > Locally on some stage servers we use Grit. > > It ran into trouble running on passenger because git was not in the path. > > Easy to remedy, but since Grit eats the errors - it was a little tricky to > > track down. > > > > For me at least > > Heroku has git in /usr/bin > > (do `ls /usr/bin` or Dir['/usr/bin/*'] > > > > But it looks like the .git directory is not present in the app. (I did find > > .gitignore - which was checked into git) > > > > I wonder if simply updating your deploy rake task and setting an > > environment variable with the sha would work for you? > > > > --Keenan > > --Keenan > > > > > > > > > > > > > > > > On Tuesday, May 10, 2011 at 9:43 AM, Amokrane wrote: > > > +1. Need this as well. > > > > > On 9 mai, 07:25, Clément <clmntlx...@gmail.com> wrote: > > > > Ok! > > > > > > Just saying.. > > > > Wouldn't it be great to have ENV["DESCRIBE"] as well, > > > > refering to `git describe` which would allow us to show the current > > > > version / tag of the app, and the number of commit from the last tag? > > > > > > Thanks, > > > > Have a nice week! > > > > Clem > > > > > > On 7 mai, 12:53, Clément <clmntlx...@gmail.com> wrote: > > > > > > > Hi, > > > > > Does an app have a reference to its git repo ? > > > > > I mean : I have any chance to retrieve the last commit within the app > > > > > itself ? > > > > > > > I would like somthing like : > > > > > <%= `git show HEAD` %> which works well on my computer but not once > > > > > deployed on Heroku :/ > > > > > > > Thanks, > > > > > Clément > > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Heroku" group. > > > To post to this group, send email to heroku@googlegroups.com. > > > To unsubscribe from this group, send email to > > > heroku+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/heroku?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
<<attachment: dev_bar.png>>