Javascript features work on localhost but not when deployed to Heroku

前端 未结 8 1757
栀梦
栀梦 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: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.

提交回复
热议问题