Closed tyen closed 14 years ago
I'm a bit confused by what you're trying to accomplish with that configuration. I'd recommend running it with the default options:
embed_assets: on
package_assets: on
(or simply removing them from assets.yml
)... and also removing your before_filter
In development, the assets will be included -- and in production, they'll be packaged if you haven't used the jammit
utility to package them in advance. Make sense?
I'm using jammit 0.5.1, and in development it is repackaging everything I've defined in assets.yml even though I make 0 changes in between requests. Right after line 121 in package.rb I put this debug statement
In my ApplicationController I inserted the before_filter suggested
Here is what is printed out every single time I make a local request from my debug statement. Since it's detecting changes it repackages everything, making every page load take about 10 seconds.
Jammit is not generating those missing files, but it is generating .js, .js.gz, .css, and .css.gz files into public/assets.
Here is my assets.yml
I stopped it from repackaging by turning embed_assets off. Should it be behaving this way? Thanks for reading