2013-11-23 32 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。 –