I'm using the bootstrap-sass gem and in production my rails app is deployed under a subfolder, i.e. the root is http://www.example.com/sub/
. Everything works fine except for the fonts (particularly, Glyphicons): in the CSS the path to the font is this:
url("/assets/bootstrap/glyphicons...
when it should be
url("/sub/assets/bootstrap/glyphicons...
The CSS and JS assets all have the correct path, but the fonts don't. I've looked around the documentation (and the rest of the web) for a while but can't find how to change this--I'm a noob when it comes to the asset pipeline stuff.
I've got it deployed on Linux-Apache-Passenger.
Edit: I should add that I have this in my Apache site config:
Alias /sub /path/to/rails/app/public
<Location /sub>
PassengerBaseURI /sub
PassengerAppRoot /path/to/rails/app
</Location>
<Directory /path/to/rails/app/public>
Allow from all
Options -MultiViews
</Directory>