Reputation: 3
I'm trying to push a rails website to heroku but keep getting an error rake aborted!
Sass::SyntaxError: File to import not found or unreadable: font-awesome. (sass):7025
Precompiling assets failed.
Push rejected, failed to compile Ruby app.
The app run perfect local. I'm new to rails so all help is appreciated. Thanks!
Upvotes: 0
Views: 1026
Reputation: 3
Okay - this is strange.... I added code @import "font-awesome"; to application.scss and gem 'font-awesome-sass' to my gem file... and boom it works... Funny thing is that local I also need code @import "font-awesome"; in my application.css file... but now it works..
Upvotes: 0
Reputation: 980
RAILS_ENV=production bundle exec rake assets:precompile
git add public/assets
git commit -m "vendor compiled assets"
Then try again
Upvotes: 1