Merge pull request #3763 from coopdevs/allow-passing-s3-region

Allow passing s3 region
This commit is contained in:
Pau Pérez Fabregat
2019-05-02 12:17:58 +02:00
committed by GitHub

View File

@@ -1,3 +1,5 @@
require_relative 'spree'
# See: https://github.com/yob/db2fog
DB2Fog.config = {
:aws_access_key_id => Spree::Config[:s3_access_key],
@@ -5,3 +7,5 @@ DB2Fog.config = {
:directory => ENV['S3_BACKUPS_BUCKET'],
:provider => 'AWS'
}
DB2Fog.config[:region] = ENV['S3_REGION'] if ENV['S3_REGION']