我想使用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上创建了一个staging实例,但我不明白为什么它不能与Vagrant一起工作。
发布于 2013-11-27 03:05:04
我今天遇到了类似的问题,可以通过在我的本地机器上运行“捆绑包”来使其工作。
https://stackoverflow.com/questions/20163462
复制相似问题