从 git 捆绑指南针时出现 Capistrano 错误
当我尝试部署到新设置的服务器时,capistrano 向我抛出了这个问题。
*** [err :: fupifarvandet.dk] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'.
** [out :: fupifarvandet.dk] Git error: command `git reset --hard 22e2458b77519e8eb8463170c1a1fe4bab105f3e` in directory /var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/bundler/gems/compass-22e2458b7751 has failed.
** [out :: fupifarvandet.dk] If this error persists you could try removing the cache directory '/var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/cache/bundler/git/compass-dcbe0c41f22c777e90babfa80d61f78dfdea41b2'
这是来自我的 Gemfile
:
gem 'compass', git: 'git://github.com/chriseppstein/compass.git', branch: 'rails31'
做什么?
When I try to deploy to my newly set up server, capistrano throws this at me.
*** [err :: fupifarvandet.dk] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'.
** [out :: fupifarvandet.dk] Git error: command `git reset --hard 22e2458b77519e8eb8463170c1a1fe4bab105f3e` in directory /var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/bundler/gems/compass-22e2458b7751 has failed.
** [out :: fupifarvandet.dk] If this error persists you could try removing the cache directory '/var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/cache/bundler/git/compass-dcbe0c41f22c777e90babfa80d61f78dfdea41b2'
This is from my Gemfile
:
gem 'compass', git: 'git://github.com/chriseppstein/compass.git', branch: 'rails31'
What do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为github上没有
rails3.1
分支。尝试 gem 'compass', '~>; 0.12.alpha'It's because there is no
rails3.1
branch on github. Trygem 'compass', '~> 0.12.alpha'