History

fix: update staging bucket references to prod

Oliver Eyton-Williams committed 5 years ago

Commit 60722321 parent 72ac0a21 file · +2 −2Browse files

Unified · Split

lib/tasks/docs.thor+2−2
@@ -191,7 +191,7 @@ class DocsCLI < Thor · 190 unmodified lines
191 puts '[S3] Begin syncing.'191 puts '[S3] Begin syncing.'
192 docs.each do |doc|192 docs.each do |doc|
193 puts "[S3] Syncing #{doc.path}..."193 puts "[S3] Syncing #{doc.path}..."
194 cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-staging-documents/#{doc.path} --delete --profile devdocs"194 cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-documents/#{doc.path} --delete --profile devdocs"
195 cmd << ' --dryrun' if options[:dryrun]195 cmd << ' --dryrun' if options[:dryrun]
196 system(cmd)196 system(cmd)
197 end197 end
@@ -204,7 +204,7 @@ class DocsCLI < Thor · 6 unmodified lines
204 docs.each do |doc|204 docs.each do |doc|
205 filename = "#{doc.path}.tar.gz"205 filename = "#{doc.path}.tar.gz"
206 print "[S3 bundle] Uploading #{filename}..."206 print "[S3 bundle] Uploading #{filename}..."
207 cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-staging-downloads/bundles/#{filename} --profile devdocs"207 cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/bundles/#{filename} --profile devdocs"
208 cmd << ' --dryrun' if options[:dryrun]208 cmd << ' --dryrun' if options[:dryrun]
209 system(cmd)209 system(cmd)
210 end210 end