Migrate_to_s3 for Digital Ocean Spaces woes

This was a sneaky one…

https://github.com/discourse/discourse/commit/d82876896eaf2ccd150ea9202003ed11742d2136

If you’re on a docker based install, GlobalSetting uses the FileProvider which reads from /var/www/discourse/config/discourse.conf. That file is only populated from the ENV once when the container is first started. As a result, running DISCOURSE_S3_REGION rails console will not have any effect on GlobalSetting.s3_region since it has not been added to config/discourse.conf.

8 Likes