Rails 4: Heroku + Paperclip + s3 not working in production

前端 未结 2 924
深忆病人
深忆病人 2021-01-16 23:52

so im following this tutorial: https://devcenter.heroku.com/articles/paperclip-s3

I manage to deploy it to Heroku and App is working in the development. The app is r

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 00:24

    For those facing the same problem, I solved this by renaming :bucket => ENV['S3_BUCKET_NAME'], to :bucket => ENV['AWS_BUCKET'],

    and downgrading gem 'aws-sdk' to gem 'aws-sdk', '~> 1.61.0'

    and it fix my problem.

提交回复
热议问题