部署 cap 部署,执行到 install_gem 时候 fatal: Could not parse object

stephen · 2012年11月20日 · 最后由 stephen 回复于 2012年11月21日 · 3520 次阅读
** [out :: 50.116.15.168] Fetching git://github.com/intridea/grape.git
*** [err :: 50.116.15.168] fatal: Could not parse object 'bed7867558ea2117824c85a043f77116ea95afd3'.
 ** [out :: 50.116.15.168] Git error: command `git reset --hard bed7867558ea2117824c85a043f77116ea95afd3` in directory /home/stephen/www/gupiao/releases/20121120131057/vendor/bundle/ruby/1.9.1/bundler/gems/grape-bed7867558ea has failed.
 ** [out :: 50.116.15.168] If this error persists you could try removing the cache directory '/home/stephen/www/gupiao/releases/20121120131057/vendor/bundle/ruby/1.9.1/cache/bundler/git/grape-c77c5fb0336b00082cc45f4584f3dddedc8cb513'
    command finished in 11509ms
*** [deploy:create_symlink] rolling back
  * executing "ls -x /home/stephen/www/gupiao/releases"

出现这个错误了,我在服务器上又找不到

/home/stephen/www/gupiao/releases/20121120131057/vendor/bundle/ruby/1.9.1/bundler/gems/grape-bed7867558ea

不知道应该如何解决?

大家没遇到过?

#1 楼 @stephen 怀疑你的 Gemfile 中关于 Grape 的部分是不是有些问题啊,贴下你的 Gemfile 文件的相关部分看看吧,或者贴你的 deploy.rb 文件。

@chunlea 发现问题所在,原来 grape 取消了 fronter 分支

需要 登录 后方可回复, 如果你还没有账号请 注册新账号