【问题标题】:Capistrano does not find bundlerCapistrano 找不到捆绑程序
【发布时间】:2013-12-02 14:03:25
【问题描述】:

当我尝试部署时,我得到一个:

bash: /srv/books/current/bin/bundle: No such file or directory

当我登录部署服务器时执行“哪个捆绑器”结果是:

/usr/local/rvm/gems/ruby-2.0.0-p353@books/bin/bundle

当我使用 capistrano 用于部署的 ssh 并执行此操作时出现问题:

ssh root@server 'which bundler'

它抛出

which: no bundler in (/usr/local/rvm/gems/ruby-2.0.0-p353/bin:/usr/local/rvm/gems/ruby-2.0.0-p353@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p353/bin:/usr/local/rvm/bin:/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)

【问题讨论】:

标签: deployment capistrano bundler


【解决方案1】:

要详细了解 Capistrano 中的某些功能为何无法在 SSH 会话中正常工作,最好通读http://www.capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/,看看您是否可以在通读后重现问题。

您没有提及您使用的是哪个版本的 Capistrano,但对于 2.x 和 3.x,RVM 都有不错的(第 3 方和第 1 方)集成)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-17
    • 1970-01-01
    相关资源
    最近更新 更多