...every single css, js and image gets re-compiled on every single
request. This takes forever.
My dev log is mostly comprised of this:
Started GET "/assets/jquery-ui-1.8.16.custom.css?body=1" for 127.0.0.1
at 2011-08-31 14:04:04 -0400
Served asset /jquery-ui-1.8.16.custom.css - 304 Not Modified (0ms)
It seems to me that the dev rails server (both webrick, and
passenger), is handling the request of every asset. It didn't work
this way in 3.0.x. While it clearly says 304 (0ms) I can attest that
the overall time to process a page (and all its assets) is
*significantly* longer.
Here's my application.rb and development.rb - they're basically the
3.1 defaults.
So is there a solution here? Even if I didn't have :debug => true in
my javascript/stylesheet tag, the JS and CSS files would still have to
be complied/generated as well as every image - which is still a
significant regression.
Consider yourself lucky, I had to deal with 5 mins on first load recently. Take a look at the rails-dev-tweaks gem, it helps a lot. In addition to that make sure that you don’t autoload all the models if you use mongoid.
I found the speed of delivering the page on the production server
improved over a week, but a few images still do not server without
bringing the building down. Strangely, favicon - yes that piece of
sh1t - in the public folder does not get served at all. This file has
nothing to do with assets pipeline man. It's just one of those
days....