mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 09:02:47 +08:00
Allow s3:upload_assets
to use site settings from DB.
This commit is contained in:
parent
8e55e61a2e
commit
c56d682f45
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user