Javascript features work on localhost but not when deployed to Heroku

前端 未结 8 1674
栀梦
栀梦 2020-12-01 17:57

I\'ve noticed that when I deploy to Heroku, javascript features dont work (such as Bootstrap Popover, Buttons, etc). I\'m working with rails 3.2.2, ruby 1.9.3. The features

相关标签:
8条回答
  • 2020-12-01 18:56

    Remember that everything that you would normally do on localhost, you must be doing with heroku. Make sure you heroku run rake assets:precompile.

    0 讨论(0)
  • 2020-12-01 18:57

    Check your production.rb file. I believe the line needs to be:

    config.assets.compile = true
    

    I believe this gets set to false by default.

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