March 02, 2015

Home » » Deploy Rails App on Heroku - Precompile Asset Errors

Deploy Rails App on Heroku - Precompile Asset Errors

Posted by Unknown
0

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 Gemfile
gem 'bootstrap-sass', '3.2.0.0'
Run command
# bundle install
My styles.css
@import "bootstrap-sprockets";
@import "bootstrap";
I changed file name to styles.css.scss
Reupload rails app to github and push to heroku app. That error resolved.

May be use!

# git push heroku master -f
Edit following line if bootstrap not work on heroku
# config/environments/production.rb
config.assets.compile = true
Then reupload to github and heroku.




0 comments:

Post a Comment

Popular Posts

Labels

Archive

 

Blogroll

Recepies

Flickr Images

Copyright © 2014. Tutorials Blog - All Rights Reserved