簡體   English   中英

部署Capistrano紅寶石2.0

[英]deploy capistrano ruby 2.0

這是什么意思,當我部署項目時出現錯誤:

 ** transaction: commit
* 2014-01-10 15:52:54 executing `deploy:bundle'
  * executing "cd /var/www/current; bundle install"
    servers: ["10.3.27.72"]
    [10.3.27.72] executing command
 ** [out :: 10.3.27.72] /home/shibanov/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'bundler' (>= 0) among 0 total gem(s) (
 ** [out :: 10.3.27.72] Gem::LoadError)
 ** [out :: 10.3.27.72] from /home/shibanov/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
 ** [out :: 10.3.27.72] from /home/shibanov/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
 ** [out :: 10.3.27.72] from /home/shibanov/.rvm/gems/ruby-2.0.0-p195@sprut/bin/bundle:22:in `<main>'
 ** [out :: 10.3.27.72] from /home/shibanov/.rvm/gems/ruby-2.0.0-p195@sprut/bin/ruby_executable_hooks:15:in `eval'
 ** [out :: 10.3.27.72] from /home/shibanov/.rvm/gems/ruby-2.0.0-p195@sprut/bin/ruby_executable_hooks:15:in `<main>'
    command finished in 41ms
failed: "env PATH=/home/shibanov/.rvm/gems/ruby-2.0.0-p195@sprut/bin:/home/shibanov/.rvm/gems/ruby-2.0.0-p195@sprut/bin:/home/shibanov/.rvm/rubies/ruby-2.0.0-p195/bin:/home/shibanov/.rvm/bin:$PATH RUBY_VERSION=ruby-2.0.0-p195 GEM_HOME=/home/shibanov/.rvm/gems/uby-2.0.0-p195@sprut GEM_PATH=/home/shibanov/.rvm/gems/uby-2.0.0-p195@sprut:/home/shibanov/.rvm/gems/uby-2.0.0-p195@sprut BUNDLE_PATH=/home/shibanov/.rvm/gems/uby-2.0.0-p195@sprut sh -c 'cd /var/www/current; bundle install'" on 10.3.27.72

當我從ruby 1.9.3遷移項目到ruby 2.0時會發生錯誤

您必須相應地設置GEM_HOME

$ export GEM_HOME='/home/shibanov/.rvm/gems/ruby-2.0.0-p195'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM