font-awesome-sass
font-awesome-sass copied to clipboard
Fonts do not get copied over in production
In development the fonts work fine, however in production, all the font files return a 404:
https://foobar.com/assets/font-awesome/fontawesome-webfont.woff
returns 404.
I am using Rails 3.2, without compass. I have tried precompiling assets manually as well as adding
config.assets.precompile += %w(*.svg *eot *woff *woff2 *.ttf)
to production.rb.
The font-awesome stylesheets are all working and referencing the fonts, but for some reason the fonts are not there!
Commenting in case anyone else ends up here. In production, there will be a unique string on these assets added by the asset pipeline. So instead of a URL like https://foobar.com/assets/font-awesome/fontawesome-webfont.woff2
it will be something like https://foobar.com/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74dh4.woff2
.