I’m having a bit of trouble with the asset pipeline and, I think, Capistrano.
In my app layout I have:
<%= stylesheet_link_tag “application”, “bootstrap” %>
And the relevant bits of the app dir structure are:
app/assets/stylesheets/application.css.scss # Contains ‘require_self’ and ‘require_tree .’ as usual
I’m using Capistrano’s asset pipeline support (load ‘deploy/assets’) in my Capfile. When I’m deploying the app using
cap deploy it’s precompiling the assets correctly and copying them into the shared/assets directory for the app on the server.
The problem seems to be that the bootstrap.css file is plain old CSS so it doesn’t get compiled (obviously) but this means that it doesn’t end up in the shared/assets directory (which is symlinked to public/assets in the app directory). Maybe there’s something I’m missing as I’m still getting to grips with the asset pipeline. Anyway, there’s no problem with this locally - I’ve tested with asset compression enabled - but then it’s not the same setup that we end up with on Capistrano deploys.
Anyone have any ideas?