Permalink
Browse files

FIX: `upload:migrate_to_s3` rake task not remapping properly.

  • Loading branch information...
tgxworld committed Oct 10, 2018
1 parent 6b7bb54 commit 918633aa12e869cad6d16fce5fae88fe2a26b82e
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/tasks/uploads.rake
@@ -257,7 +257,10 @@ def migrate_to_s3
end

# remap the URL
DbHelper.remap(UrlHelper.absolute(from), Discourse.store.cdn_url(to))
DbHelper.remap(UrlHelper.absolute_without_cdn(from), Discourse.store.cdn_url(to))
DbHelper.remap(from, to)
upload.optimized_images.destroy_all

putc "."
end

1 comment on commit 918633a

@discoursebot

This comment has been minimized.

Copy link

discoursebot commented on 918633a Oct 10, 2018

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333/6

Please sign in to comment.