beanstalk-svn

Show the latest commit value within a web application?

烈酒焚心 提交于 2019-12-21 04:22:29
问题 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

Git Cloning a Sub-Directory in a Repository

旧时模样 提交于 2019-12-11 09:08:05
问题 I just set up a Beanstalk account and created a repository using git. My repository is being used to hold different websites I am working on, and it will act as the staging server. Repository - website1 - website2 - website3 Inside of those folders are the websites active files. So when I commit any changes, I set it up to automatically deploy to the staging server FTP. So I have: developmentdomain.com/website1/ developmentdomain.com/website2/ developmentdomain.com/website3/ And then once it

Show the latest commit value within a web application?

百般思念 提交于 2019-12-03 12:28:51
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