简体   繁体   English

Heroku上Rails 4的Icomoon问题

[英]Icomoon issues with rails 4 on heroku

I have a rails 4 app deployed on heroku. 我在heroku上部署了Rails 4应用程序。 Inside my assets/stylesheets, i have a icomoon folder with its styles and icomoon fonts file. 在我的资产/样式表中,我有一个带有样式和icomoon字体文件的icomoon文件夹。 The icomoon is rendered in the pages during development mode but not when deployed to heroku. icomoon在开发模式期间在页面中呈现,但在部署到heroku时不呈现。 I have installed the gem 'rails_12factor' and set config.serve_static_assets = true. 我已经安装了gem'rails_12factor'并设置config.serve_static_assets = true。 What is causing the icomoon to be not loaded during production mode? 是什么导致生产模式下无法加载icomoon?

Have you tried using the asset-url SASS helper? 您是否尝试过使用asset-url SASS助手? There is also a font-url helper if you relocate your fonts to assets/fonts 如果将字体重定位到assets/fonts则还有一个font-url助手。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM