I use bootstrap on rails app, precompile appear when i deploy rails app on heroku. (Rails 4)
I resolved and worked
I added bootstrap to Gemfilegem 'bootstrap-sass', '3.2.0.0'Run command
# bundle installMy styles.css
@import "bootstrap-sprockets"; @import "bootstrap";
I changed file name to styles.css.scssReupload rails app to github and push to heroku app. That error resolved.
May be use!
# git push heroku master -fEdit following line if bootstrap not work on heroku
# config/environments/production.rb config.assets.compile = trueThen reupload to github and heroku.
rubyonrails

0 comments:
Post a Comment