Felix
Felix

Reputation: 5619

Rails fonts were not precompiled for production

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

Upvotes: 0

Views: 311

Answers (1)

user1201917
user1201917

Reputation: 1370

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

config.assets.precompile << /\.(?:svg|eot|woff|ttf)\z/

Upvotes: 1

Related Questions