Tag: version control

在Web应用程序中显示最新的提交值?

我有几个Rails应用程序,我使用Git作为版本控制系统。 我使用GitHub或Beanstalk作为存储库主机。 我想要的是理论上非常简单。 以某种方式在Web应用程序的页脚中显示最新的提交ID号(哈希?)。 因此,当我查看Web应用程序时,我可以检查它是否已正确提交和部署。 我可以想象有两种方法可以解决这个问题。 第一个是Git的一个可能的function,它允许输出提交ID。 第二个是提交后的Web挂钩(Beanstalk和GitHub都允许这样做)。 有没有人找到办法做到这一点,或类似的东西? 谢谢, 丹尼

$ PATH未正确设置

我只是跑’rvm get stable’得到以下错误; Warning! PATH is not properly set up, ‘/Users/jamesbkemp/.rvm/gems/ruby-2.2.1/bin’ is not at first place, usually this is caused by shell initialization files – check them for ‘PATH=…’ entries, it might also help to re-add RVM to your dotfiles: ‘rvm get stable –auto-dotfiles’, to fix temporarily in this shell session run: ‘rvm use ruby-2.2.1’. […]