Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts do not get copied over in production #90

Open
jcohenho opened this issue May 7, 2015 · 1 comment
Open

Fonts do not get copied over in production #90

jcohenho opened this issue May 7, 2015 · 1 comment

Comments

@jcohenho
Copy link

jcohenho commented May 7, 2015

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!

@kris-luminar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants