ruby on rails 3 - Rake中止,没有这样的文件加载——回形针



我正在尝试将Rails3应用程序部署到Heroku,但是当我Rake db:create或Rake db:migrate到Heroku时,我得到了这个'Rake aborted'错误。

db:push发送模式,索引和数据,但我得到一个'应用程序错误'在app.heroku url。

我试过删除并创建一个新的Heroku应用程序,但我遇到了同样的问题。

回形针似乎是原因。我已经在gemfile中检查了回形针。我已经更新了所有宝石。我尝试从gemfile中删除明显的依赖项。但我仍然得到"rake aborted"错误。

我很感激任何有用的信息,帮助我了解发生了什么,以及如何解决它的想法或指针。

创建——trace

rake aborted!
no such file to load -- Paperclip
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in `load_dependency'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:596:in `new_constants_in'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in `load_dependency'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
/app/config/application.rb:11
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/app/Rakefile:4
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/bin/rake:31
/usr/ruby1.8.7/bin/rake:19:in `load'
/usr/ruby1.8.7/bin/rake:19
(in /app)

heroku日志文件很长,唯一看起来相关的位是

2011-04-26T02:57:28+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require': no such file to load -- Paperclip (LoadError)

My gem file

source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'sqlite3'
gem 'pg', :require => 'pg'
gem 'paperclip', :require => 'paperclip'
gem 'rack-raw-upload'
gem 'rmagick'
gem 'will_paginate', '3.0.pre2'
gem 'devise'
gem 'aws-s3'
gem 'omniauth'
gem 'cancan'
gem 'cells'
group :development do
    gem 'annotate-models', '1.0.4'
    gem 'nifty-generators'
end
group :test do
    gem 'mocha'
end

在我本地的Postgres开发环境中一切正常。

如果我错过了什么重要的信息,请告诉我。

我非常感谢任何有助于理解调试此类问题的最佳方法的提示。我不知道从哪里开始!

谢谢

经过大量搜索,这个问题的答案在应用程序中。rb文件。我有一个行"需要回形针",我删除了,一切都很好。

相关内容

  • 没有找到相关文章

最新更新