Can't load custom CSS on Heroku

烂漫一生 提交于 2020-01-05 11:07:10

问题


I am running Rails 3.2.8 and built an app which links to a custom CSS file and images. The custom CSS file is placed in my Assets/stylesheets folder and images are in Assets/images.

For some reason, the CSS and images don't load when I push the app to Heroku. The app generates a manifest.yml file which contains all the images and CSS file.

The CSS file is a customised version of Twitter Bootstrap: http://twitter.github.com/bootstrap/index.html

Hope you guys can help and thanks in advance!


回答1:


I don't think you can store images on heroku. You'll have to use something like amazone s3 bucket. And then link the ccs images to the amazone bucket



来源:https://stackoverflow.com/questions/12902005/cant-load-custom-css-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!