问题
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