I have added new image in assets but after pushing on Heroku they remain there for few hours and again old images start displaying and i have also compiled Heroku assets but still new images disappear after few hours
RAILS_ENV=production bundle exec rake assets:precompile
-
Please refer to this thread stackoverflow.com/questions/18324063/… .titan– titan2016-08-10 05:51:05 +00:00Commented Aug 10, 2016 at 5:51
Add a comment
|
1 Answer
Edit these two lines from false to true in production.rb file.
config.assets.compile = true
config.assets.digest = true
Second, if you've syntax like this for your images
background: url("imgo.jpg")
Change it to
background: image-url("image.jpg")
Found solution here