AWS S3, Paperclip missing required :bucket option

后端 未结 5 593
囚心锁ツ
囚心锁ツ 2020-12-06 05:09

I\'m trying to use Paperclip and SWS S3 on Heroku to let users upload images.

I do not have my credentials stored in a yml file. I\'ve followed the instructions on t

5条回答
  •  情书的邮戳
    2020-12-06 05:23

    Scott, sorry if there was any confusion here.

    I am the author of the Dev Center article. As B Seven stated above the AWS Config Vars need to be set on the Heroku application.

    Heroku has recently updated their documentation (https://devcenter.heroku.com/articles/config-vars#example) and set is preferred over add going forward.

    
    $ heroku config:set AWS_BUCKET=your_bucket_name
    $ heroku config:set AWS_ACCESS_KEY_ID=your_access_key_id
    $ heroku config:set AWS_SECRET_ACCESS_KEY=your_secret_access_key
    
    

提交回复
热议问题