twitter-bootstrap-rails on Heroku: Glyphicons displayed as squares

后端 未结 3 1528
长情又很酷
长情又很酷 2021-02-03 15:44

I have deployed a rails app on Heroku, and I am using the twitter-bootstrap-rails gem to include twitter bootstrap. Everything works perfectly locally (and in the development en

3条回答
  •  感情败类
    2021-02-03 16:26

    I solved this problem by adding to config/environments/production.rb:

    config.assets.precompile += %w( '.woff', '.eot', '.svg', '.ttf' )
    

    Also I have next string in Gemfile, without github path:

    gem 'twitter-bootstrap-rails'
    

    With this configuration Glyphicons displayed well on Heroku.

提交回复
热议问题