diff --git a/config/initializers/db2fog.rb b/config/initializers/db2fog.rb index 1e05ceae1a..3e1ed96202 100644 --- a/config/initializers/db2fog.rb +++ b/config/initializers/db2fog.rb @@ -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']