我想测试使用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配置:
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无关。
答案 0 :(得分:1)
我今天遇到类似的问题,可以通过在我的本地计算机上运行“捆绑”来解决问题。