Store S3 keys in Config before calling db2fog

This ensures that Db2fog always picks up the latest value of the S3_*
env vars and not the one that was persisted last time. Now you can do
things like `S3_BUCKET=xxx bundle exec rake db2fog:backup` if you had
to.
This commit is contained in:
Pau Perez
2019-04-30 12:09:15 +02:00
parent c5720bede5
commit f36646d0a3

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],