mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow specifying s3 config via globals
This refactors handling of s3 so it can be specified via GlobalSetting This means that in a multisite environment you can configure s3 uploads without actual sites knowing credentials in s3 It is a critical setting for situations where assets are mirrored to s3.
This commit is contained in:
@@ -28,10 +28,10 @@ module Autospec
|
||||
def self.reload(pattern); RELOADERS << pattern; end
|
||||
def reloaders; RELOADERS; end
|
||||
|
||||
# We need to reload the whole app when changing any of these files
|
||||
reload("spec/rails_helper.rb")
|
||||
reload(%r{config/.+\.rb})
|
||||
reload(%r{app/helpers/.+\.rb})
|
||||
# we are using a simple runner at the moment, whole idea of using a reloader is no longer needed
|
||||
watch("spec/rails_helper.rb")
|
||||
watch(%r{config/.+\.rb})
|
||||
#reload(%r{app/helpers/.+\.rb})
|
||||
|
||||
def failed_specs
|
||||
specs = []
|
||||
|
||||
Reference in New Issue
Block a user