Ошибка Rails 500 :application.css не скомпилирован предварительно

У меня есть Rails, работающий на Passenger с Apache на Ubuntu linux box (ve )Server от Mediatemple. Мое приложение выдает ошибку 500 (ошибку Rails, а не ошибку Apache ), когда я пытаюсь загрузить любую страницу:http://www.mvngmtns.com

Я видел статью об изменении этой строки в config/environments/production.rb:

    config.assets.compile = true

Но это не решило мою проблему. Кто-нибудь может помочь?

Мой development.log:

Started GET "/" for 72.225.170.239 at 2012-06-29 15:28:43 -0700
Processing by HomeController#index as HTML
Rendered application/_logo.html.erb (0.6ms)
Rendered application/_navbar.html.erb (1.4ms)
Rendered home/index.html.erb within layouts/application (2.6ms)
Completed 500 Internal Server Error in 6ms

ActionView::Template::Error (application.css isn't precompiled):
2: 
3: 
4:   Moving Mountains<%= get_title %>
5:   <%= stylesheet_link_tag    "application", :media => "all" %>
6:   <%= javascript_include_tag "application" %>
7:   <%= csrf_meta_tags %>
8:
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___2841110860658336572_129641540'
app/controllers/home_controller.rb:6:in `index'

По запросу запустил

    rake assets:precompile --trace RAILS_ENV=production
    touch /tmp/restart.txt

но все та же ошибка. Вот что сказал след:

newguy@mvngmtns:/var/www/movingmountains$ rake assets:precompile --trace RAILS_ENV=production
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/local/rvm/rubies/ruby-1.9.2-head/bin/ruby /usr/local/rvm/gems/ruby-1.9.2-head@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
** Invoke assets:precompile:nondigest (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:non digest

У меня до сих пор то же самое "500-Извините, но что-то пошло не так" в браузере, а кэш :[GET/] отсутствует в лог-файле апача.

5
задан Duncan Malashock 30 June 2012 в 01:57
поделиться