ruby - Heroku not generating png files -
i have images stored in subdirectory follows,
+ public + source + posts + images + rss-icon.png + post1 + redsquare.jpg + greensquare.png in post have following,
  on local server, 3 images (rss-icon, redsquare, greensquare) render no problems.
but when deploy heroku, greensquare.png image not work. instead 404 failed load resource status. both rss-icon.png , redsquare.jpg work fine on deployed site.
all suggested solutions can find apply rails... example this , this.
however i'm not using rails...
i triple-checked gitignore , slugignore files , there nothing there cause bias.
how can resolve this? appreciated.
edit: nevermind, found solution. minor error on part see answer below. leaving here in case useful someone.
okay, turns out had nothing location of images. instead had lettercase of extension.
my images looked this, 
i assumed extension case-insensitive , wrote references using lowercase (png). isn't so! changing uppercase fixed 404 issue.
as side note, uppercase png images generated microsoft's snipping tool, 
Comments
Post a Comment