在heroku上font-awesome-rails图标格式不正确 [英] font-awesome-rails icon formatting incorrect on heroku

查看:152
本文介绍了在heroku上font-awesome-rails图标格式不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用font-awesome-rails在我的网站上生成一些图标。当我在本地运行该网站时,图像图标正确显示(它们的样式是不同的颜色)。但是,当我通过Heroku进行制作时,造型会混乱(有些图标不会出现,并且没有任何图标是正确的颜色)。我可能做错了什么?我甚至不知道我的代码有什么问题,所以如果有任何特定的代码片段可以帮助我分享,请告诉我,我会添加它。



左边的图片是生产中的网站snapshop,右边的图片是本地运行的网站。



编辑:



重启我的开发服务器后,我发现图标在本地也显示不正确。什么可能会出错?

解决方案

这似乎是我的Gemfile的问题;当我检出Gemfile和Gemfile.lock的旧版本时,我能够摆脱这个问题。


I'm using font-awesome-rails to generate some icons on my site. When I run the site locally, the image icons appear correctly (they are styled to be different colors). However, when I push to production via Heroku, the styling is messed up (some icons don't appear, and none of the icons are the right color). What could I be doing wrong? I'm not even sure what could be wrong with my code, so if any particular snippets would be helpful for me to share, let me know and I'll add it.

The image on the left is a snapshop of the website in production, and the image on the right is the website running locally.

EDIT:

After restarting my development server, I'm finding the icons appear incorrectly locally as well. What could have gone wrong?

解决方案

It seems like it was an issue with my Gemfile; when I checked out an older version of my Gemfile and Gemfile.lock, I was able to get rid of the problem.

这篇关于在heroku上font-awesome-rails图标格式不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆