When mirroring a database, bring all payment methods into dev env

This commit is contained in:
Rohan Mitchell
2014-07-18 14:54:15 +10:00
parent 3d57e0a7a7
commit cecc0134f4
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env ruby
Spree::Config.use_s3 = false

View File

@@ -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

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
Spree::Config.use_s3 = false
Spree::PaymentMethod.update_all environment: 'development'