ruby on rails - Heroku erases images each time the application shuts down and restarts after being inactive for x minutes? -
i saw question:after git push heroku - uploaded files on heroku lost
each time application shuts down , restarts after being inactive x minutes), application recreated , stored data lost.(c)
right have user can upload 2 photos.i got email confirmation of new users. can check user registered , uploaded photo 4 , 14 hours ago. i've made last commit , pushed heroku around 19 hours ago. , 4 images, new users uploaded lost now.but can see images if register user. seems true app inactive x minutes , restarts , deletes images.
i read questions rails] images erased after new commit on heroku there says should use external server aws s3( have no idea , how cost , how connect it) true? other options? may should use digital ocean(won't there same problem?) or else. problem continue in paid account?
i use rails , upload files using carrierwave gem, can't upload code here cause writing laptop.
heroku's filesystem readonly. can't expect upload persist there, need use external storage mechanism, amazon's s3 example.
see links more details.
https://devcenter.heroku.com/articles/s3 https://devcenter.heroku.com/articles/dynos#isolation-and-security
Comments
Post a Comment