I have an application on Heroku that uses the Carrierwave gem to upload images to S3.
I set the s3 configuration in the initializer named carrierwave.rb
CarrierWave.configure do |config| config.s3_access_key_id = 'XXXXXXXXXXXXXXXXXXXX' config.s3_secret_access_key = 'XXXXXXXXXXXXXXXXX' config.s3_bucket = 'XXXXX' config.storage = :s3 end
This works fine when developing on my local machine, however, after deploying to Heroku, I get the following error:
A Errno::EACCES occurred in events
Obviously, he is trying to write a heroku server that only reads and does not type s3 settings.
Does anyone know how I can get a hero to send my files to s3?
source share