Merge pull request #3764 from Matt-Yorkley/s3_backups_without_images

Don't use s3 for images unless images bucket has been provisioned.
This commit is contained in:
Pau Pérez Fabregat
2019-05-01 17:55:01 +02:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ Spree.config do |config|
config.s3_bucket = ENV['S3_BUCKET'] if ENV['S3_BUCKET']
config.s3_access_key = ENV['S3_ACCESS_KEY'] if ENV['S3_ACCESS_KEY']
config.s3_secret = ENV['S3_SECRET'] if ENV['S3_SECRET']
config.use_s3 = true if ENV['S3_ACCESS_KEY'] && ENV['S3_SECRET']
config.use_s3 = true if ENV['S3_BUCKET']
config.s3_protocol = ENV.fetch('S3_PROTOCOL', 'https')
end