简体   繁体   English

找不到Capistrano捆绑器

[英]Capistrano bundler not found

but the bundler is already on the server installed, this shows me the. 但是捆绑器已经安装在服务器上,这向我展示了。

gem list

shows me the bundler 1.0.22, and on my local machine it shows after gem list 向我显示了捆绑程序1.0.22,在我的本地计算机上,它显示在gem列表之后

bundler (1.1.1, 10.22)

I don't know where the second came from. 我不知道第二个是哪里来的。 I tried this tutorial http://teachmetocode.com/screencasts/basic-deployment-with-capistrano/ but i get an error like this. 我尝试了本教程http://teachmetocode.com/screencasts/basic-deployment-with-capistrano/,但出现类似错误。

 Could not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)

Where are this errors from? 这些错误来自何处?

The problem may be that you need to create the bundler wrapper. 问题可能是您需要创建捆绑程序包装程序。 You can do that this way(in your deploy.rb, for example) 您可以通过这种方式进行操作(例如,在您的deploy.rb中)

require "rvm/capistrano" # http://beginrescueend.com/integration/capistrano/

# rvm-capistrano settings
set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")

namespace :rvm do
  task :create_bundle_wrapper, roles: :app do
    run "rvm wrapper #{rvm_ruby_string} bundle bundle"
  end  
end

after "deploy:create_symlink", "rvm:create_bundle_wrapper"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM