3

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

1

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.