我是 RoR 的新手,正试图部署到 Heroku,但它让我发疯!这是我的日志:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:32:27 +0000
2012-04-21T19:32:27+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:32:27+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (86.1ms)
2012-04-21T19:32:27+00:00 app[web.1]: Completed 500 Internal Server Error in 266ms
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:32:27+00:00 app[web.1]: 4: <head>
2012-04-21T19:32:27+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:32:27+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:32:27+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:32:27+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:32:27+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:32:27+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:32:27+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=384ms status=500 bytes=643
2012-04-21T19:32:28+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=10ms status=200 bytes=0
2012-04-21T19:32:28+00:00 heroku[web.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM
2012-04-21T19:32:28+00:00 heroku[web.1]: Stopping process with SIGKILL
2012-04-21T19:32:29+00:00 heroku[web.1]: Process exited with status 137
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:09+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:09 +0000
2012-04-21T19:33:09+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.6ms)
2012-04-21T19:33:09+00:00 app[web.1]: Completed 500 Internal Server Error in 7ms
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:09+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:09+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:09+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:09+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:09+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:09+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:09+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:09+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=19ms status=500 bytes=643
2012-04-21T19:33:10+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=34ms status=304 bytes=0
2012-04-21T19:33:11+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=31ms status=500 bytes=643
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:11+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:11 +0000
2012-04-21T19:33:11+00:00 app[web.1]: Completed 500 Internal Server Error in 12ms
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:11+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:11+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:11+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.4ms)
2012-04-21T19:33:11+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:11+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:11+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:11+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:13+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:13 +0000
2012-04-21T19:33:13+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (14.5ms)
2012-04-21T19:33:13+00:00 app[web.1]: Completed 500 Internal Server Error in 66ms
2012-04-21T19:33:13+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:13+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]: 5
: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:13+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:13+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:13+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:13+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=89ms status=500 bytes=643
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:15 +0000
2012-04-21T19:33:15+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:15+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.4ms)
2012-04-21T19:33:15+00:00 app[web.1]: Completed 500 Internal Server Error in 20ms
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:15+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:15+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:15+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:15+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:15+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:15+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:15+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:15+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=65ms status=500 bytes=643
2012-04-21T19:33:15+00:00 app[web.1]:
我尝试了我所知道的一切来预编译所有 css 和 js 文件,但仍然收到我什至设置config.assets.precompile += ['*.js', '*.css']
但仍然无法正常工作的这个错误。当我转向config.serve_static_assets
一切true
工作时,但如您所知,它有一些缺点!有什么线索吗?