【问题标题】:Bundle and rake commands are not recognized with Capistrano 3Capistrano 3 无法识别 Bundle 和 rake 命令
【发布时间】:2014-01-22 13:15:34
【问题描述】:

我已安装 Capistrano 3,但无法让我的应用调用 bundle install 并在部署时预编译我的资产。

我已经看到我必须在那里为 RVM 配置我的环境 http://rvm.io/deployment/capistrano#environment

但我想知道,我有一台开发计算机 A 和一台部署计算机 B,它们都安装了 RVM 用户。

我应该将 Capistrano 配置为在我的开发计算机还是部署计算机上使用 RVM?

【问题讨论】:

  • Capistrano 在您的开发机器上使用 SSH 在部署机器上运行命令,run_locally 块中的任何内容除外。

标签: ruby-on-rails ruby capistrano rvm-capistrano capistrano3


【解决方案1】:

你的 Capfile 有以下内容吗?

require 'capistrano/rails'
require 'capistrano/rvm'

capistrano/rails 包含捆绑器、资产和迁移的依赖项。

https://github.com/capistrano/rails/blob/master/lib/capistrano/rails.rb
https://github.com/capistrano/rvm

还要确保阅读 capistrano/rvm 上的自述文件,因为您需要拥有正确的 capistrano/bundler 版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-17
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 1970-01-01
    相关资源
    最近更新 更多