Merge pull request #2491 from betagouv/fix_import_db_task

Import DB: fix location
This commit is contained in:
Pierre de La Morinerie 2018-09-19 14:26:22 +02:00 committed by GitHub
commit 0f4a75ac89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ namespace :dev do
local_file = "/tmp/#{filename}" local_file = "/tmp/#{filename}"
if !File.exist?(local_file) if !File.exist?(local_file)
run_and_stop_if_error "scp -C deploy@sgmap_backup:/var/backup/production1/db/#{filename} #{local_file}" run_and_stop_if_error "scp -C db1:/data/backup/#{filename} #{local_file}"
end end
dev_env_param = "RAILS_ENV=development" dev_env_param = "RAILS_ENV=development"