If you are having issues uploading images please read the following two configuration sections. International users (additional configuration) $ heroku config:set AWS_REGION=your_aws_region $ heroku config:set AWS_SECRET_ACCESS_KEY=your_secret_access_key $ heroku config:set AWS_ACCESS_KEY_ID=your_access_key_id $ heroku config:set S3_BUCKET_NAME=your_bucket_name To test S3 uploads locally in development mode these settings must also be added to the development environment.Īdditionally, we’ll need to the set the AWS configuration variables on the Heroku application. Secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'), # config/environments/production.rbĪccess_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'), We’ll also need to specify the AWS configuration variables for the production Environment. Run bundle install and restart the Rails server after modifying the Gemfile. Paperclip requires the following gems added to your Gemfile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |