ruby on rails - CSS and Images on Heroku broken after push -
i started rails app on heroku working fine, including pictures , css. when tried update app , add pictures , new links tied existing css class, none of new assets worked. strange part changed things old links in program , acted expected. seemed @ first weren't precompiled ran rake assets:precompile
both locally (and pushed) , on server, nothing changed. new images still aren't showing up. rule out few other dumb mistakes, have made sure image file exists , valid image tag running locally (everything fine locally) , sure pushes git working.
the problem you've got images in css going static (image1.jpg), whereas in pre-compiled production environment, they'll called (image-05d983ce1986aa481e03729fca7a493a.jpg)
a way see if case go onto view source
-> application-05d983ce1986aa481e03729fca7a493a.css
, images app needs. if static, that's problem.
you may wish try resolve it, feel it's css issue (i have problem too, we're seeing how fix it):
rake assets:precompile rails_env=production
Comments
Post a Comment