Rails:application.css没有被编译......但它是。认真地

时间:2013-07-24 23:02:55

标签: ruby-on-rails ruby-on-rails-3 passenger production-environment

更新:问题解决了,但论坛不会让我回答。请参阅下面的评论。

我预先编译了我的资产。它们按预期显示在public/assets中。我的应用程序中也有tmp/restart.txt(因为我正在使用Passenger)。

但是我的生产日志文件中出现了同样的ActionView::Template::Error (application.css isn't precompiled):错误。

还有什么?我完全删除了调用任何css作为最后一次努力的行,并且仍然给出完全相同的错误。

在删除行之前:

Started GET "/" for 68.57.46.75 at 2013-07-24 22:35:14 +0000
Processing by EpisodesController#home as HTML
  Rendered episodes/_feature.html.erb (1.7ms)
  Rendered episodes/_feature.html.erb (1.1ms)
  Rendered episodes/home.html.erb within layouts/application (4.1ms)
Completed 500 Internal Server Error in 6ms

ActionView::Template::Error (application.css isn't precompiled):
    5:   <meta name="viewport" content="width=device-width">
    6:   
    7:   <title>The Only Podcast on the Internet<%= @page_title ? ' - ' + @page_title : '' %></title>
    8:   <%= stylesheet_link_tag    "application", :media => "all" %>
    9:   <%= javascript_include_tag "application" %>
    10:   <%= csrf_meta_tags %>
    11:   
  app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__3061238341936562138_19571120'

删除线后:

Started GET "/" for 68.57.46.75 at 2013-07-24 22:44:28 +0000
Processing by EpisodesController#home as HTML
  Rendered episodes/_feature.html.erb (1.8ms)
  Rendered episodes/_feature.html.erb (1.3ms)
  Rendered episodes/home.html.erb within layouts/application (4.9ms)
Completed 500 Internal Server Error in 7ms

ActionView::Template::Error (application.css isn't precompiled):
    5:   <meta name="viewport" content="width=device-width">
    6:   
    7:   
    8: 
    9: <meta property='og:image' content="<%= @page_image ? @page_image : $site_image %>" />
    10: <meta property='og:url' content="<%= request.protocol+request.host_with_port+request.fullpath %>" />
    11: <meta property='og:title' content="The Only Podcast on the Internet<%= @page_title ? ': ' + CGI::escapeHTML(@page_title) : '' %>" />
  app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__3061238341936562138_19571120'

我的意思是,圣牛。它抛出与错误源相同的行并在那里打印出一条空行。有没有人见过这个?

0 个答案:

没有答案