From cf2b2433e985abe7199c423db739c48e5217dbed Mon Sep 17 00:00:00 2001 From: rebuilt Date: Tue, 14 Feb 2023 19:54:23 -0800 Subject: [PATCH] Use an sftp uri unique to MCIEA --- app/services/sftp/directory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/sftp/directory.rb b/app/services/sftp/directory.rb index ae3621d8..3a841ec3 100644 --- a/app/services/sftp/directory.rb +++ b/app/services/sftp/directory.rb @@ -5,7 +5,7 @@ require 'csv' module Sftp class Directory def self.open(path: '/data/survey_responses/clean', &block) - sftptogo_url = ENV['SFTPTOGO_URL'] + sftptogo_url = ENV['MCIEA_SFTPTOGO_URL'] uri = URI.parse(sftptogo_url) Net::SFTP.start(uri.host, uri.user, password: uri.password) do |sftp| sftp.dir.foreach(path) do |entry|