2012-07-07 47 views
0

出於某種原因,我在生產上遇到與heroku上的代碼相同的問題。會有解釋嗎?這裏的Heroku的日誌:Heroku生產上的錯誤,但不是本地的

Completed 500 Internal Server Error in 183ms 
2012-07-07T23:15:41+00:00 app[web.1]: 
2012-07-07T23:15:41+00:00 app[web.1]: ActionView::Template::Error (gmaps4rails.css isn't precompiled): 
2012-0 
7-07T23:15:41+00:00 app[web.1]:  8:  = javascript_include_tag "application" 
2012-07-07T23:15:41+00:00 app[web.1]:  9:  = csrf_meta_tags 
2012-07-07T23:15:41+00:00 app[web.1]:  10:  = render 'layouts/shim' 
2012-07-07T23:15:41+00:00 app[web.1]:  11:  = stylesheet_link_tag "gmaps4rails" 
2012-07-07T23:15:41+00:00 app[web.1]:  12: 
2012-07-07T23:15:41+00:00 app[web.1]:  13:  %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0"} 
2012-07-07T23:15:41+00:00 app[web.1]:  14: %body 
2012-07-07T23:15:41+00:00 app[web.1]: app/views/layouts/application.html.haml:11:in `_app_views_layouts_application_html_haml__610548992894307187_47414440' 

回答

0

您gmaps4rails CSS犯規存在,請確保您要麼在本地預編譯,並將其提交到回購或刪除所有的公共/ CSS文件,這將迫使Heroku的編譯的樣式表您。

0

嘗試增加這配置/ production.rb

config.assets.precompile += %w(gmaps4rails.css) 
相關問題