0

我想测试一个使用 Vagrant 用 Rubber 构建的集群。我按照 Rubber Wiki 上的说明进行操作,但运行时vagrant up staging出现以下错误:

[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

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

4

1 回答 1

1

我今天遇到了类似的问题,可以通过在我的本地机器上运行“ bundle ”来让它工作。

于 2013-11-26T19:05:03.597 回答