Skip to content

Commit

Permalink
Revert part of #9271 (#9358)
Browse files Browse the repository at this point in the history
  • Loading branch information
viroulep authored May 7, 2024
1 parent c153328 commit 47bc932
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/db_dump_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.dump_developer_db
end

def self.public_s3_path(file_name)
"http://#{BUCKET_NAME}.s3#{EnvConfig.STORAGE_AWS_REGION}.amazonaws.com/#{file_name}"
"https://s3.#{EnvConfig.STORAGE_AWS_REGION}.amazonaws.com/#{BUCKET_NAME}/#{file_name}"
end

def self.dump_results_db(export_timestamp = DateTime.now)
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/db.rake
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace :db do
Dir.mktmpdir do |dir|
FileUtils.cd dir do
dev_db_dump_url = DbDumpHelper.public_s3_path(DbDumpHelper::DEVELOPER_EXPORT_SQL_PERMALINK)
puts "dev dump url: #{dev_db_dump_url}"
local_file = "./dump.zip"
LogTask.log_task("Downloading #{dev_db_dump_url}") do
system("curl -o #{local_file} #{dev_db_dump_url}") || raise("Error while running `curl`")
Expand Down

0 comments on commit 47bc932

Please sign in to comment.