捆绑安装失败,因为"没有这样的文件或目录"

时间:2015-02-05 16:36:12

标签: ruby-on-rails gem capistrano bundler

我正在尝试使用capistrano部署到临时服务器。此命令在部署和手动上均失败:

cd .../apps/myapp/releases/20150205154326 && ( RVM_BIN_PATH=/usr/local/rvm/bin/ PATH=/usr/bin/git:$PATH /usr/local/rvm/bin/rvm default do bundle install --path .../apps/myapp/shared/bundle --without development test --deployment --quiet )

错误:

Git error: command 'git clone --no-checkout --quiet ".../apps/myapp/shared/bundle/ruby/2.1.0/cache/bundler/git/fog- 8836460df0e4c80347618efd3adda34209f0c6f7" ".../apps/myapp/shared/bundle/ruby/2.1.0/bundler/gems/fog- 5ceace13efe1"' in directory .../apps/myapp/releases/20150205154326 has failed. If this error persists you could try removing the cache directory '.../apps/myapp/shared/bundle/ruby/2.1.0/cache/bundler/git/fog-8836460df0e4c80347618efd3adda34209f0c6f7'

但是,此目录存在,权限正常。我试图删除它并再次运行,但无济于事。

1 个答案:

答案 0 :(得分:0)

通过重新安装bundler和rvm来解决