天道酬勤,学无止境

beanstalk-svn

Show the latest commit value within a web application?

I have a few Rails applications and I use Git as the version control system. I use either GitHub or Beanstalk as the repository hosts. What I am trying to is quite simple in theory. Somehow show the latest commit ID number (hash?) in the footer of the web application. So that when I am looking at the web application I can check that it's committed and deployed correctly. I can imagine there are two methods to tackle this. The first would be a possible feature of Git that allows the output of the commit ID. The second would be a post-commit web hook (both Beanstalk and GitHub allow this). Has

2021-06-02 02:21:24    分类:问答    ruby-on-rails   git   version-control   github   amazon-elastic-beanstalk   beanstalk-svn