Couldn't find file 'twitter/bootstrap' in Production

后端 未结 6 690
不知归路
不知归路 2020-12-15 20:30

I\'m using Twitter\'s Bootstrap translated to SCSS files. It works in local-development, but when I precompile and push to Heroku (using Cedar stack), I get this:

         


        
6条回答
  •  忘掉有多难
    2020-12-15 21:19

    When you see something like this when you are deploying rails app to heroku.com

    Precompiling assets failed, enabling runtime asset compilation
    ...
    could not connect to server: Connection refused
    Is the server running on host "127.0.0.1" and accepting
    TCP/IP connections on port xxxx?
    

    Just add this to config/application.rb

    config.assets.initialize_on_precompile = false
    

提交回复
热议问题