Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add progress indicator for post rebake during s3 migration

David Taylor41bc90dd3e22
diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index b825f81c0ba..d80bb997c8d 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -460,8 +460,10 @@ def migrate_to_s3
puts "Rebaking posts with lightboxes..."
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
+ putc "."
post.rebake!(priority: :ultra_low)
end
+ puts
end
end