Heroku deploy fails after upgrading to bootstrap 2.0.1 via twitter-bootstrap-rails gem

前端 未结 6 1202
情歌与酒
情歌与酒 2020-12-19 21:41

UPDATE:

this error is shown during git push heroku master :

-----> Preparing app for Rails asset pipeline
       Running: rake assets         


        
相关标签:
6条回答
  • 2020-12-19 22:24

    Another workaround for errors during runtime asset compilation is to use the asset_sync gem.

    0 讨论(0)
  • 2020-12-19 22:27

    I also moved gem "twitter-bootstrap-rails" outside the assets group and that works!

    0 讨论(0)
  • 2020-12-19 22:30

    For me the solution was to remove this line in application.css

    *= require twitter/bootstrap
    

    Se https://github.com/seyhunak/twitter-bootstrap-rails/issues/123

    0 讨论(0)
  • 2020-12-19 22:32

    Solved.

    Simply by comment out the following line in Gemfile :

    #gem 'twitter-bootstrap-rails', :git => 'http://github.com/seyhunak/twitter-bootstrap-rails.git'
    

    and using gem "twitter-bootstrap-rails", "~> 2.0.1.0" then running bundle update

    To be complete, my previous failing branch was :

    -  revision: a5d67d23afeaa76eb52c6f87d55ff407f9c753f2
    -    twitter-bootstrap-rails (2.0.1)
    
    0 讨论(0)
  • 2020-12-19 22:36

    I was able to fix this issue by simply moving gem "twitter-bootstrap-rails" out of the :assets block and putting it at the top of my gemfile.

    0 讨论(0)
  • 2020-12-19 22:39

    Remove the following file app/assets/stylesheets/bootstrap.css.less and enjoy. Soruce https://github.com/seyhunak/twitter-bootstrap-rails/issues/123

    0 讨论(0)
提交回复
热议问题