首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Vagrant中使用Rubber时找不到cap命令

在Vagrant中使用Rubber时找不到cap命令
EN

Stack Overflow用户
提问于 2013-11-23 22:22:17
回答 1查看 503关注 0票数 0

我想使用Vagrant测试一个用Rubber构建的集群。我遵循了Rubber Wiki上的说明,但是当我运行vagrant up staging时,我得到了以下错误:

代码语言:javascript
复制
[staging] -- /vagrant
[staging] Running provisioner: rubber...
bundler: command not found: cap
Install missing gem executables with `bundle install`
bundler: command not found: cap
Install missing gem executables with `bundle install`
bundler: command not found: cap
Install missing gem executables with `bundle install`

这是我的Vagrant配置:

代码语言:javascript
复制
Vagrant.configure("2") do |config|

  config.vm.define :staging do |stg|
    stg.vm.network :private_network, ip: "192.168.70.10"

    stg.vm.provision :rubber do |rubber|
      rubber.rubber_env = 'staging'

      rubber.rvm_ruby_version = 'ruby-2.0.0-p195'
    end
  end


  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "precise32"

  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  config.vm.box_url = "http://files.vagrantup.com/precise32.box"
end

我的Gemfile中有capistrano,并且已经安装了。我还设法在EC2上创建了一个staging实例,但我不明白为什么它不能与Vagrant一起工作。

EN

回答 1

Stack Overflow用户

发布于 2013-11-27 03:05:04

我今天遇到了类似的问题,可以通过在我的本地机器上运行“捆绑包”来使其工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20163462

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档