mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
When mirroring a database, bring all payment methods into dev env
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
Spree::Config.use_s3 = false
|
||||
|
||||
@@ -19,8 +19,8 @@ ssh $1 "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" |gunzi
|
||||
|
||||
|
||||
# -- Disable S3
|
||||
echo "Disabling S3 in development..."
|
||||
$RAILS_RUN script/disable_s3.rb
|
||||
echo "Preparing mirrored database..."
|
||||
$RAILS_RUN script/prepare_imported_db.rb
|
||||
|
||||
|
||||
# -- Mirror images
|
||||
|
||||
4
script/prepare_imported_db.rb
Normal file
4
script/prepare_imported_db.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
Spree::Config.use_s3 = false
|
||||
Spree::PaymentMethod.update_all environment: 'development'
|
||||
Reference in New Issue
Block a user