I use jammit and sass, and use a capistrano task to minify the css/js
with (instead of doing it at runtime, which is slooow).
desc "Bundle and minify the JS and CSS files"
task :precache_assets, :roles => :app do
# Generate all the stylesheets manually (from their Sass
templates) before each restart.
run "/bin/sh #{release_path}/rails/cmd.sh rake sass:update
RAILS_ENV=production"
run "/bin/sh #{release_path}/rails/cmd.sh jammit"
end
(the cmd.sh you see there basically runs the argument with "bundle exec")
See Precaching Assets in Jammit docs (with a links to blog posts -
which is now a broken link - where the above task came from).
Robert
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.