font-awesome-sass icon indicating copy to clipboard operation
font-awesome-sass copied to clipboard

Fonts do not get copied over in production

Open jcohenho opened this issue 9 years ago • 1 comments

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!

jcohenho avatar May 07 '15 00:05 jcohenho

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.

kris-luminar avatar Jul 06 '16 14:07 kris-luminar