Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap twitter引导图标不会出现在heroku中_Twitter Bootstrap_Heroku_Icons - Fatal编程技术网

Twitter bootstrap twitter引导图标不会出现在heroku中

Twitter bootstrap twitter引导图标不会出现在heroku中,twitter-bootstrap,heroku,icons,Twitter Bootstrap,Heroku,Icons,我正在使用ruby 2.0.0开发Rails 4应用程序。我使用twitter引导,但图标图示符有问题: 问题是这些图标不会出现在生产中。在开发环境中,一切正常 这是我的help.html.erb文件中的代码 <i class="icon-user"></i> 我的生产环境部署在heroku上。 你知道为什么这些图标没有出现吗?谢谢你的帮助。我通过直接从glyphicons.com下载图标图像,将它们放入app/assets/images,将config.service

我正在使用ruby 2.0.0开发Rails 4应用程序。我使用twitter引导,但图标图示符有问题: 问题是这些图标不会出现在生产中。在开发环境中,一切正常

这是我的help.html.erb文件中的代码

<i class="icon-user"></i>
我的生产环境部署在heroku上。
你知道为什么这些图标没有出现吗?谢谢你的帮助。

我通过直接从glyphicons.com下载图标图像,将它们放入app/assets/images,将config.service\u static\u assets设置为true,运行rake assets:precompile,并推送到heroku解决了这个问题。

我也遇到了同样的问题

尝试运行以下命令:

RAILS_ENV=production rake assets:clean and
RAILS_ENV=production rake assets:precompile.

这对我起了作用。

我通过直接从下载图标图像、将它们放入app/assets/images、将config.service\u static\u assets设置为true、运行rake assets:precompile并推送到heroku解决了这个问题。
RAILS_ENV=production rake assets:clean and
RAILS_ENV=production rake assets:precompile.