我想部署一个简单的骨架Rails 3.0.5(和Ruby 1.9.2)应用程序Heroku,但遇到同样的错误,当我打开网站,当我尝试迁移D b。我使用heroku create --stack bamboo-mri-1.9.2
创建了Heroku应用程序。一切工作在当地。Heroku部署和数据库迁移问题
Code: https://github.com/curiousyogurt/SEE
App: http://stormy-ice-778.heroku.com/
当要访问的网站,我得到一个 “应用程序错误”;在日志中,我得到以下错误(后面跟很多其他的信息):
2011-03-20T17:25:31-07:00 app[web.1]: /app/cfde9dd3-c394-45fb-a0ef-72a753e83909/home/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/railtie/configuration.rb:77:in 'method_missing': undefined method `action' for #<Rails::Application::Configuration:0x00000001d398d8> (NoMethodError)
Stack Trace: gist.github.com/878866
在做
heroku rake db:migrate
,我得到以下错误:rake aborted! undefined method 'action' for # /app/44666f97-ad08-444e-9f39-9ca7eb8fdc93/home/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/railtie/configuration.rb:77:in `method_missing'
Stack Trace: gist.github.com/878870
这里是我的Gemfile (删除非生产零件):
gem 'rails', '3.0.5'
gem 'haml'
gem 'devise', :git => 'git://github.com/plataformatec/devise',
:branch => 'master'
gem 'omniauth'
我不确定接下来要去哪里追踪 这个问题。任何建议将不胜感激。
你能列出更多的堆栈跟踪吗? – 2011-03-21 01:10:00
当然。这里是:gist.github.com/878866(上面#1的堆栈跟踪);和https://gist.github.com/878870(上面#2的堆栈跟踪)。 – CuriousYogurt 2011-03-21 01:20:45
再一次! 'config/environments/production.rb'的内容如何?堆栈跟踪指向该文件中的问题。 – 2011-03-21 01:33:08