Gem cap deploy Could not find rake-0.9.2.2 in any of the sources

stephen · 2012年03月02日 · 最后由 stephen 回复于 2012年03月02日 · 3609 次阅读
[vm-192-168-11-11.shengyun.grandcloud.cn] executing command
    [vm-192-168-11-11.shengyun.grandcloud.cn] rvm_path=/home/stephen/.rvm /home/stephen/.rvm/bin/rvm-shell 'ruby-1.9.2-p290@global' -c 'cd /home/apps/blog/releases/20120302053254 && rake RAILS_ENV=production  db:migrate'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] rake aborted!
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] 
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] Could not find rake-0.9.2.2 in any of the sources
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] 
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/spec_set.rb:88:in `block in materialize'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `map!'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `materialize'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/definition.rb:107:in `specs'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/definition.rb:152:in `specs_for'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/definition.rb:141:in `requested_specs'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/environment.rb:23:in `requested_specs'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:11:in `setup'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler.rb:110:in `setup'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/setup.rb:17:in `<top (required)>'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/apps/blog/releases/20120302053254/config/boot.rb:6:in `<top (required)>'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] <internal:lib/rubygems/custom_require>:29:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] <internal:lib/rubygems/custom_require>:29:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/apps/blog/releases/20120302053254/config/application.rb:1:in `<top (required)>'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] <internal:lib/rubygems/custom_require>:29:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] <internal:lib/rubygems/custom_require>:29:in `require'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/apps/blog/releases/20120302053254/Rakefile:5:in `<top (required)>'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `load'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:1991:in `run'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] /home/stephen/.rvm/rubies/ruby-1.9.2-p290/bin/rake:35:in `<main>'
*** [err :: vm-192-168-11-11.shengyun.grandcloud.cn] 
 ** [out :: vm-192-168-11-11.shengyun.grandcloud.cn] (in /home/apps/blog/releases/20120302053254)

deploy.rb

$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"

set :user, "stephen"
set :runner, "apps"
set :group, "apps"

set :application, "blog"
set :rvm_ruby_string, "ruby-1.9.2-p290@global"
set :rvm_path, "/home/stephen/.rvm"
set :rvm_bin_path, "/home/stephen/.rvm/bin"
set :rvm_trust_rvmrcs_flag, 1
set :normalize_asset_timestamps, false

set :scm, :git
set :domain, "vm-192-168-11-11.shengyun.grandcloud.cn"
set :repository,  "git://github.com/85636682/blog.git"
set :branch, "master"

set :deploy_to, "/home/apps/#{application}"
set :deploy_via, :remote_cache
set :git_shallow_clone, 1
set :deploy_env, "production"
set :rails_env, "production"
set :scm_verbose, true
set :use_sudo, false



role :web, domain                          # Your HTTP server, Apache/etc
role :app, domain                          # This may be the same as your `Web` server
role :db,  domain, :primary => true # This is where Rails migrations will run

namespace :deploy do

  task :init_shared_path, :roles => :web do
    run "mkdir -p #{deploy_to}/shared/log"
    run "mkdir -p #{deploy_to}/shared/pids"
    run "mkdir -p #{deploy_to}/shared/assets"
  end

  task :link_shared_files, :roles => :web do
    run "ln -sf #{deploy_to}/shared/config/database.yml #{deploy_to}/current/config/database.yml"
    run "ln -s #{deploy_to}/shared/assets #{deploy_to}/current/public/assets"
  end

  task :install_gems, :roles => :web do
    run "cd #{deploy_to}/current/; bundle install --without development test"
  end

  task :compile_assets, :roles => :web do
    run "cd #{deploy_to}/current/; bundle exec rake assets:precompile"
  end

end

# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts

# If you are using Passenger mod_rails uncomment this:
# namespace :deploy do
#   task :start do ; end
#   task :stop do ; end
#   task :restart, :roles => :app, :except => { :no_release => true } do
#     run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
#   end
# end
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册