2013-11-23 27 views
0

我想用使用Vagrant测试使用橡胶建立的群集。我也跟着上了橡胶维基的说明,但是当我运行vagrant up staging我得到以下错误:使用带有Vagrant的橡胶时找不到帽命令

[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.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 

我有Capistrano的在我的Gemfile与安装它。我还设法在EC2上创建了一个临时实例,但我无法弄清楚为什么它不适用于Vagrant。

回答

1

我今天有类似的问题,可以通过在我的本地机器上运行“软件包”来运行它。

+0

我也这样做过,仍然无法工作。 – adivasile

+1

我明白了,我还有很多时间都在用橡皮+流浪汉工作,看起来它缺少关于他们的好文档/指南以及FAQ。 –