I’m having a bit of trouble with the asset pipeline and, I think,
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’
‘require_tree .’ as usual
I’m using Capistrano’s asset pipeline support (load ‘deploy/assets’) in
Capfile. When I’m deploying the app using
cap deploy it’s precompiling
assets correctly and copying them into the shared/assets directory for
app on the server.
The problem seems to be that the bootstrap.css file is plain old CSS so
doesn’t get compiled (obviously) but this means that it doesn’t end up
the shared/assets directory (which is symlinked to public/assets in the
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
- I’ve tested with asset compression enabled - but then it’s not the
setup that we end up with on Capistrano deploys.
Anyone have any ideas?