diff --git a/config/environments/production.rb b/config/environments/production.rb index 4964c5a..1ac8424 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -76,4 +76,14 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + + # paperclip + config.paperclip_defaults = { + storage: :s3, + s3_credentials: { + bucket: ENV['S3_BUCKET_NAME'], + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + } + } end