0

尝试使用 ClearDB 插件将 Rails 4、Ruby 2、MySQL 应用程序部署到 Heroku 以处理 MySQL,但尝试加载主页会导致服务器日志中出现这种情况。有什么想法吗?

at=info method=GET path=/ host=whispering-lake-7719.herokuapp.com fwd="76.24.27.108" dyno=web.1 connect=1ms service=75ms status=304 bytes=0
Started GET "/assets/application-780385875af2448947950232fb279cb6.js" for 76.24.27.108 at 2013-08-22 04:39:41 +0000
Processing by HomeController#index as JS
  Parameters: {"ember"=>8947950232fb279cb6"}
  Rendered home/index.html.erb (0.0ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
Started GET "/" for 76.24.27.108 at 2013-08-22 04:41:17 +0000
Processing by HomeController#index as HTML
  Rendered home/index.html.erb within layouts/application (0.0ms)
Completed 200 OK in 22ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/assets/application-58c7c0e35a67f189e19b8c485930e614.css" for 76.24.27.108 at 2013-08-22 04:41:17 +0000
Processing by HomeController#index as CSS
  Parameters: {"ember"=>"assets/application-58c7c0e35a67f189e19b8c485930e614"}
method=GET path=/assets/application-58c7c0e35a67f189e19b8c485930e614.css host=whispering-lake-7719.herokuapp.com fwd="76.24.27.108" dyno=web.1 connect=1ms service=70ms status=500 bytes=1266
Completed 500 Internal Server Error in 6ms

ActionView::MissingTemplate (Missing template home/index, application/index with {:locale=>[:en], :formats=>[:css], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in:
* "/app/app/views"
* "/app/vendor/bundle/ruby/2.0.0/gems/twitter-bootstrap-rails-2.2.7/app/views"
* "/app/vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/app/views"
):
4

1 回答 1

0

将 rails_12factor gem 添加到生产组下的 gemfile 修复了这个问题。

于 2013-08-22T20:06:47.540 回答