After deploying to heroku, the fonts get lost, meaning they are not found when a page loads.
#application.ru
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
This is what was suggested on the forums. But that doesn't work. There are no error during deploying to heroku.
What else can I do?
/app/assets/stylesheets/_fonts.css.scss
#..............................
@font-face {
font-family: 'Verb Extra Bold';
src: asset-url('verbextrabold-webfont.eot');
src: asset-url('verbextrabold-webfont.eot?#iefix') format('embedded-opentype'),
asset-url('verbextrabold-webfont.woff') format('woff'),
asset-url('verbextrabold-webfont.ttf') format('truetype'),
asset-url('verbextrabold-webfont.svg#verbextrabold') format('svg');
font-weight: normal;
font-style: normal;
}
#..............................
asset-url
tofont-url
. Try precompiling the assets on your local machine to see if the fonts also get included by runningENV=production rake assets:precompile
.