Khen Khen
2006-May-16 16:55 UTC
[Rails] Rails doesn''t serve static files in production mode
I just noticed this: RoR does serve static files on a lighttpd-server just fine - in development mode. If I set it to production in environment.rb - static files are not served anymore (like the scaffold.css). How can I fix this? -- Posted via http://www.ruby-forum.com/.
Johannes Hass
2006-May-16 21:36 UTC
[Rails] Re: Rails doesn''t serve static files in production mode
found some additional info in my production.log ActionController::RoutingError (Recognition failed for "/stylesheets/scaffold.css"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in `recognition_failed'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:478:in `recognize!'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in `process_request'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in `process!'' /usr/lib/site_ruby/1.8/fcgi.rb:600:in `each_cgi'' /usr/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process!'' /var/www/html/evj/public/dispatch.fcgi:24 -- Posted via http://www.ruby-forum.com/.