heroku

How do I have a persistent file storage when deploying to Heroku?

北慕城南 提交于 2020-11-25 03:44:22
问题 I know that Heroku's dyno gets refreshed each time a deploy is made so is there anyway I can have my files persistent or there's no other way but use services like amazon S3? I use paperclip to handle file upload and most of the files will be in pdf. 回答1: It would be best to use S3 or another service. Ephemeral filesystem Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as