CSS is looking different on heroku

前端 未结 5 1836
一整个雨季
一整个雨季 2020-12-29 09:27

As you should see in the images below, the css on my local host site is spaced much better at the top than it is on heroku.

Has anyone had this type of problem bef

5条回答
  •  死守一世寂寞
    2020-12-29 10:15

    I have the very same issue. When I compare the development and production code, it occurs that on the development machine the stylesheets and javascript files from bootstrap all get loaded whereby on the production site (Heroku), there is only one application-XYZ.css and one application-XYZ.js.

    I am not sure if this could be an issue with the asset pipeline.

    Could probably someone elaborate on what needs to be done to (pre-)compile the asset pipeline such that deployment on Heroku succeeds.

提交回复
热议问题