Javascript features work on localhost but not when deployed to Heroku

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

    If you've already tried heroku run rake assets:precompile and the JS still isn't working, try doing heroku restart to restart the server after precompiling assets.

提交回复
热议问题