mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
depricating db2fog.rb initializer due to invalid bucket name
Once everybody changed their server config, we can remove that file.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,6 +34,7 @@ config/abr.yml
|
||||
config/heroku_env.rb
|
||||
config/newrelic.yml
|
||||
config/initializers/feature_toggle.rb
|
||||
config/initializers/db2fog.rb
|
||||
NERD_tree*
|
||||
coverage
|
||||
libpeerconnection.log
|
||||
|
||||
15
config/initializers/0_depricated_db2fog.rb
Normal file
15
config/initializers/0_depricated_db2fog.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# Depricated: this initializer contains an invalid bucket name.
|
||||
# Users of DB2fog should be able to configure DB2fog without changing the code.
|
||||
#
|
||||
# Name your configuration file `db2fog.rb`. It will be ignored by git.
|
||||
# And it will overwrite this depricated configuration.
|
||||
#
|
||||
# See: https://github.com/yob/db2fog
|
||||
#
|
||||
# TODO: Remove this file in a future release.
|
||||
DB2Fog.config = {
|
||||
:aws_access_key_id => Spree::Config[:s3_access_key],
|
||||
:aws_secret_access_key => Spree::Config[:s3_secret],
|
||||
:directory => "db-backup_#{Spree::Config[:s3_bucket]}",
|
||||
:provider => 'AWS'
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
DB2Fog.config = {
|
||||
:aws_access_key_id => Spree::Config[:s3_access_key],
|
||||
:aws_secret_access_key => Spree::Config[:s3_secret],
|
||||
:directory => "db-backup_#{Spree::Config[:s3_bucket]}",
|
||||
:provider => 'AWS'
|
||||
}
|
||||
Reference in New Issue
Block a user