Thibaud Clement
Thibaud Clement

Reputation: 6897

Rails 4: Font Awesome working locally, breaking on Heroku

Before anything, let me state that I did some research and found the following questions on Stack Overflow about the same issue:

None of the answers above actually help me solve my problem, because they refer to a different setup of Font Awesome.

Indeed, I installed Font Awesome on my Rails 4 with the font-awesome-rails gem, following the guidelines available here, ie:

Because of this setup, the first SO question mentioned above does not help me, since it refers to the CDN installation of Font Awesome.

In the second question, the valid answer suggests to:

Move the fonts folder for font-awesome into app/assets and the font awesome js and css files into vendor/assets or app/assets appropriate javascripts and stylesheets folders.

But I can't find any font folder, nor any font awesome js and css files in my app currently.

—————

EDIT: I am happy to delete my question if it is an actual duplicate of any of the questions mentioned above because I just did not understand the given answers.

—————

Is there a specifc way to fix my problem with my current setup?

Upvotes: 3

Views: 261

Answers (1)

Bruno Paulino
Bruno Paulino

Reputation: 5790

run this command:

bundle exec rake assets:precompile

now, run git add -A, git commit and push to heroku.

Upvotes: 1

Related Questions