0

I've got some fonts added in the app/assets/fonts

they do not precompile for production ...

tried this in application.rb

module app
   class Application < Rails::Application

      config.assets.paths << Rails.root.join("app", "assets", "fonts", "tinymce")

whats going wrong?

I'm Using rails 4.2

Felix
  • 5,452
  • 12
  • 68
  • 163
  • Possible duplicate of [Using fonts with Rails asset pipeline](http://stackoverflow.com/questions/10905905/using-fonts-with-rails-asset-pipeline) – Richard_G Apr 04 '16 at 12:02
  • It would be easier to answer your question with more information. For example: What is your target environment? Are you just issuing a local assets:precompile? What are you expecting and what are you seeing, exactly? That way, we can see what might be wrong and best advise you. Beyond that, there are already excellent SO answers around this question, so a search would help. Good luck! – Richard_G Apr 04 '16 at 12:23
  • my target environment should be the production! ... Problem is that the fonts which are located under app/assets/fonts not precompiled. I see the normal page but wrong fonts an fontawesome not working ... – Felix Apr 06 '16 at 08:51

1 Answers1

1

Aside assets.paths you need to put assets.precompile in your application.rb: For example:

config.assets.precompile << /\.(?:svg|eot|woff|ttf)\z/
user1201917
  • 1,360
  • 1
  • 14
  • 27