简体   繁体   中英

Heroku giving 404 on image

I just deployed an app through Heroku and while the background images are displaying the element images are not. I am getting a 404 error. Seeking help, please.

Basically, when you deploy the web app to heroku. It tries to minimize and precompile all files and store them in assets folder(or different folder name) with different names. I do not know what kind of framework you are using for your website.

If you are using Ruby On Rails framework, I recommend that you create images folder in public and store all your images here (this is the easiest way).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM