Hi I’m currently using carrierwave on my rails app without Amazon S3 or any storage, so the pictures I upload onto my heroku app keep disappearing. I was wondering if there was a way to migrate existing records beforehand(made in development mode) to heroku so that those pics would be stored forever in the local filesystem instead of disappearing?
Share
If you only want to have some pics displaying, you can eventually manually add them in your public folder, at least they will display properly.
For example, you can add the picture “/public/uploads/recipe/photo/5/chicken-wings.jpg” to your git repo and push it to heroku.
Of course this is not the perfect solution as you add this image into your git repo which is not what you want when you will launch the application in production but as Heroku is a read-only file system this is the only way to store file on their filesystem.