2012-03-22 83 views
1

但是bundler已經安裝在服務器上,這顯示了我。Capistrano bundler not found

gem list 

顯示我的打捆1.0.22,和我的本地機器上後,創業板的列表顯示

bundler (1.1.1, 10.22) 

我不知道在哪裏,第二是從哪裏來的。我試過這個教程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) 

這個錯誤來自哪裏?

+1

你是如何安裝ruby的?請包括輸出'gem env' – mpapis 2012-03-23 06:33:05

+0

我安裝它像rvm ruby​​教程。 https://rvm.beginrescueend.com/rvm/install/ lacally沒有問題,但它運行,但部署使我哭了:-) – amarradi 2012-03-24 17:46:32

+0

我從行 '加載'部署/資產刪除Capfile中的命令'' – amarradi 2012-03-24 17:52:18

回答

0

問題可能是您需要創建捆綁包裝。你可以這樣做(例如在你的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" 
+1

嗨...你已經發布了三次相同的答案。如果你這樣做,那麼所有三個問題都有可能是一個很好的機會,所以標記它們。如果這些不是確切的錯誤,那麼請解決問題的具體問題,而不是發佈相同的複製粘貼答案。謝謝。 – Kev 2012-09-29 14:11:02

+0

不知道@Kev,謝謝。 – 2012-09-29 14:13:37