-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images disappear on Heroku #324
Comments
@canedy Heroku doesn't support long term image storage on dynos as per their documentation here.
You will need to setup your application to storage assets on something like AWS S3 or GCP storage. Heroku gives a good tutorial on how to setup S3. |
Thanks for the information. Complicates things for me, but I understand your response. If anyone else has other ways to solve let me know, but will move down the path to AWS. If anyone has any lesson learned on this please let me know thanks. |
Hi @canedy I had to work through a similar issue when I was staging on Heroku; I used AWS. I can't quite remember everything, but here's some tips to get you started: Setup and get credentials: Add this to your gemfile: # s3 access
gem 'fog', require: 'fog/aws'` Carrierwave setup: .env example: Hope this helps to get you started. Good luck! |
To add for further reference:
|
I'm having an issue where my images disappear on Heroku. I notice that they disappear after my account goes dormant. I'm currently running on hobby mode. If seems like the image is loaded to memory. When I look at Fae_images I still see the image name. I also notice that when I go into the form the name of the image is gone and when I upload again it creates a new record in Fae_images.
I'm wondering if this is the case that images are stored in memory when they are uploaded from your form. I'm attempting to figure out why images disappear after some period of time and how I can fix this bad behavior.
thanks.
The text was updated successfully, but these errors were encountered: