mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -1,3 +1,5 @@
|
||||
require_relative 'spree'
|
||||
|
||||
# See: https://github.com/yob/db2fog
|
||||
DB2Fog.config = {
|
||||
:aws_access_key_id => Spree::Config[:s3_access_key],
|
||||
|
||||
Reference in New Issue
Block a user