Enable compression for DB dump download

This commit is contained in:
Frederic Merizen 2018-05-30 15:40:35 +02:00
parent 8fb0241d99
commit 3fd0681a10

View file

@ -71,7 +71,7 @@ namespace :dev do
task :import_db do
filename = "tps_prod_#{1.day.ago.strftime("%d-%m-%Y")}.sql"
local_file = "/tmp/#{filename}"
run_and_stop_if_error "scp deploy@sgmap_backup:/var/backup/production1/db/#{filename} #{local_file}"
run_and_stop_if_error "scp -C deploy@sgmap_backup:/var/backup/production1/db/#{filename} #{local_file}"
dev_env_param = "RAILS_ENV=development"