Skip to content

Not precompiling fonts in production #200

Description

@crissmancd

It appears that the font files are not being precompiled in production. The css files work, but fonts are not found. These are the rails/sass gems installed:

* autoprefixer-rails (7.1.6)
* bootstrap-sass (3.3.7)
* coffee-rails (4.2.2)
* dotenv-rails (1.0.2)
* factory_girl_rails (4.9.0)
* font-awesome-rails (4.7.0.4)
* jquery-rails (4.3.1)
* pry-rails (0.3.6)
* rails (5.1.4)
* rails-controller-testing (1.0.2)
* rails-dom-testing (2.0.3)
* rails-html-sanitizer (1.0.4)
* rspec-rails (3.7.2)
* sass (3.5.3)
* sass-listen (4.0.0)
* sass-rails (6.0.0.beta1 dd04a6a)
* sprockets-rails (3.2.1 857e781)

I've added this to assets.rb: Rails.application.config.assets.precompile += %w( *.tt *woff *.woff2 *.svg *.eot )

Does anything need to be added to the assets manifest file? Not sure what I'm missing here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions