Allow s3:upload_assets to use site settings from DB.

This commit is contained in:
Guo Xiang Tan 2018-11-15 15:05:48 +08:00
parent 8e55e61a2e
commit c56d682f45

View File

@ -76,7 +76,7 @@ def asset_paths
end
def ensure_s3_configured!
unless GlobalSetting.use_s3?
unless GlobalSetting.use_s3? || ENV["USE_DB_S3_CONFIG"]
STDERR.puts "ERROR: Ensure S3 is configured in config/discourse.conf of environment vars"
exit 1
end