Can Discourse migrate what is already in in locally when it is connected to S3 storage?

前端是根据cooked的内容来获取图片地址的,也就是说如果你只是把文件复制到了S3里,浏览器依然会尝试冲本地存储的URL里下载图片

要把本地存储的内容迁移到S3,最简单的方法是执行迁移脚本rake uploads:migrate_to_s3


The frontend retrieves images based on the cooked content, meaning that if you only copy the files to S3, the browser will still attempt to fetch images from the local storage URLs.

The simplest way to migrate content from local storage to S3 is to run the migration script rake uploads:migrate_to_s3.

3 Likes