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
Themes assets not found on production #348
Comments
Hi @fedemoretti |
Hi @owen2345, thanks for your quick response. I did some research and I found the problem was we were using more than one SCSS file and only application.css.scss gets precompiled. |
Hi @owen2345, I thought the problem was solved but it was not. The problem is SASS assets helper methods are not working inside my scss files. I have a font-face setup as: @font-face {
font-family: 'Lato';
src: asset-theme-url('fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
src: asset-theme-url('fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
asset-theme-url('fonts/Lato-Bold.woff2') format('woff2'), /* Modern Browsers */
asset-theme-url('fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
asset-theme-url('fonts/Lato-Bold.ttf') format('truetype');
font-style: normal;
font-weight: 700;
text-rendering: optimizeLegibility;
} And my compiled CSS results in: /* Webfont: Lato-Bold */
@font-face {
font-family: 'Lato';
src: asset-theme-url("fonts/Lato-Bold.eot");
/* IE9 Compat Modes */
src: asset-theme-url("fonts/Lato-Bold.eot?#iefix") format("embedded-opentype"), asset-theme-url("fonts/Lato-Bold.woff2") format("woff2"), asset-theme-url("fonts/Lato-Bold.woff") format("woff"), asset-theme-url("fonts/Lato-Bold.ttf") format("truetype");
font-style: normal;
font-weight: 700;
text-rendering: optimizeLegibility;
} My fonts are in Any ideas? |
@fedemoretti
tested in my local machine |
Hello, I deployed an application to a production server and did assets precompilation using
bundle exec rake assets:precompile
.However, some assets inside my custom theme are not served (fonts, images, etc).
Do I need to include them in
initializers/assets.rb
?The text was updated successfully, but these errors were encountered: