Herokuでrakeがころぶ
タイトルのまんまです。お手上げ寸前。
そういえば、少し前にHerokuのBundlerのバージョンが1.0.0.rc.2に上がってました。なのでrails 3.0.0.rcのままでもデプロイできます。
rakeがうまくいかないのは、"Rails 3 doesn't officially support Ruby 1.9.1"って言ってるししょうがないんですかね。
% cat Gemfile source 'http://rubygems.org' gem 'rails', '3.0.0.rc' gem 'sqlite3-ruby', :require => 'sqlite3' gem 'mongoid', '2.0.0.beta.15' gem 'bson_ext' gem 'oauth' gem 'json'
% cat Rakefile # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) require 'rake' Rsss::Application.load_tasks
% cat lib/tasks/cron.rake task :cron => :environment do puts 'piyo' end
% heroku rake cron --trace Rails 3 doesn't officially support Ruby 1.9.1 since recent stable releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2 before Rails 3 is released! You're running ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux] /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:32: warning: already initialized constant RAKEVERSION /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:404: warning: already initialized constant EMPTY_TASK_ARGS /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:452: warning: already initialized constant EMPTY /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:960: warning: already initialized constant RUBY_EXT /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:964: warning: already initialized constant RUBY /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1033: warning: already initialized constant LN_SUPPORTED /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1242: warning: already initialized constant ARRAY_METHODS /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1245: warning: already initialized constant MUST_DEFINE /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1249: warning: already initialized constant MUST_NOT_DEFINE /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1253: warning: already initialized constant SPECIAL_RETURN /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1259: warning: already initialized constant DELEGATING_METHODS /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1569: warning: already initialized constant DEFAULT_IGNORE_PATTERNS /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1575: warning: already initialized constant DEFAULT_IGNORE_PROCS /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1612: warning: already initialized constant FileList /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1638: warning: already initialized constant EARLY /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1968: warning: already initialized constant DEFAULT_RAKEFILES rake aborted! stack level too deep /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' <<中略>> /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/core_ext/time/calculations.rb:282:in `compare_with_coercion' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1650:in `<=>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:93:in `>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:93:in `block (3 levels) in <top (required)>' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1268:in `select' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1268:in `select' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:93:in `block (2 levels) in <top (required)>' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/testtask.rb:91:in `initialize' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:91:in `new' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:91:in `block in <top (required)>' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1882:in `in_namespace' /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:910:in `namespace' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/testing.rake:86:in `<top (required)>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:215:in `load' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:215:in `block in load' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:205:in `block in load_dependency' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:570:in `new_constants_in' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:205:in `load_dependency' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:215:in `load' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/test_unit/railtie.rb:12:in `block in <class:TestUnitRailtie>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/railtie.rb:184:in `call' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/railtie.rb:184:in `each' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/railtie.rb:184:in `load_tasks' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/application.rb:140:in `block in load_tasks' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/application/railties.rb:11:in `each' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/application/railties.rb:11:in `all' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/application.rb:140:in `load_tasks' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `method_missing' /disk1/home/slugs/258233_f2821a9_8ba0/mnt/Rakefile:7:in `<top (required)>' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `load' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in `block in load_rakefile' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in `block in run' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /home/slugs/258233_f2821a9_8ba0/mnt/.bundle/gems/ruby/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top (required)>' /usr/ruby1.9.1/bin/rake:19:in `load' /usr/ruby1.9.1/bin/rake:19:in `<main>' (in /disk1/home/slugs/258233_f2821a9_8ba0/mnt)