Search code examples
djangoherokudjango-cmsdivio

aldryn-newsblog featured image file missing


Am working on an aldryn-newsblog. it works well on my local host. once i push the blog to heroku, thats when i get a problem. Every time i add a new article, the article publishes very well with no problem. but after some time,say 20 mins the featured image just disappears. This forces me to edit the article again so as to add the image afresh. image showing my file missing once i try to edit my article

What might be the problem? kindly assist.


Solution

  • Heroku uses ephemeral file system (files may be written to the app’s “tmp/” directory, but can be discarded by the system at any time)

    Use a cloud storage service instead, see https://devcenter.heroku.com/articles/s3

    Heroku docs: https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem