Capistrano'Bundle Not Found'错误在部署期间 [英] Capistrano 'Bundle Not Found' Error During Deployment

查看:126
本文介绍了Capistrano'Bundle Not Found'错误在部署期间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 cap deploy:update 我得到以下错误,表示找不到 bundle 。当我运行 echo $ PATH cap shell /var/lib/gems/1.9 .1 / bin 缺少包含的路径,但是,该路径位于 / etc / profile 〜 /.bashrc 。任何人都知道如何解决这个问题?

When I run cap deploy:update I get the error below, indicating that bundle is not found. When I run echo $PATH from cap shell the /var/lib/gems/1.9.1/bin path which contains bundle is missing, however, this path is in both /etc/profile and ~/.bashrc. Anyone know how to solve this problem?

    [192.168.10.100] executing command
*** [err :: 192.168.10.100] sh:
*** [err :: 192.168.10.100] bundle: not found
*** [err :: 192.168.10.100]
    command finished in 25ms
failed: "sh -c 'bundle install --gemfile /data/www/apps/my_app/releases/201104
04163717/Gemfile --path /data/www/apps/my_apps/shared/bundle --deployment --qui
et --without development test'" on 192.168.10.100


推荐答案

要避免此类问题,您应该在两个地方安装最新版本的RVM(目前是1.13.5):本地和远程服务器。

To avoide such problem you should have most recent versions of RVM (currently it is 1.13.5) installed in both places: locally and on remote server.

接下来,检查你的deploy.rb是否有

Next, check if your deploy.rb has

require "rvm/capistrano"
require "bundler/capistrano"

此行不再需要了:

$:.unshift(File.expand_path('./lib', ENV['rvm_path']))

希望这将有助于

这篇关于Capistrano'Bundle Not Found'错误在部署期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆