捆绑安装失败,因为 "No such file or directory"
bundle install fails because "No such file or directory"
我正在尝试使用 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'
但是,这个目录是存在的,权限没问题。我尝试删除它并再次 运行,但无济于事。
通过重新安装 bundler 和 rvm 解决
我正在尝试使用 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'
但是,这个目录是存在的,权限没问题。我尝试删除它并再次 运行,但无济于事。
通过重新安装 bundler 和 rvm 解决