# Amazon S3 settings for Paperclip uploads
config.paperclip_defaults = {
:storage => :s3,
:s3_protocol => 'https',
:s3_credentials => {
:bucket => ENV['AWS_BUCKET'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
}
# Set env vars
heroku config:set AWS_ACCESS_KEY_ID=xxx AWS_SECRET_ACCESS_KEY=xxx AWS_BUCKET=bucket-name -a app-name