mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
rename CONCURRENT to SPROCKETS_CONCURRENT
This commit is contained in:
@ -124,7 +124,7 @@ def compress(from,to)
|
||||
end
|
||||
|
||||
def concurrent?
|
||||
if ENV["CONCURRENT"] == "1"
|
||||
if ENV["SPROCKETS_CONCURRENT"] == "1"
|
||||
concurrent_compressors = []
|
||||
yield(Proc.new { |&block| concurrent_compressors << Concurrent::Future.execute { block.call } })
|
||||
concurrent_compressors.each(&:wait!)
|
||||
|
Reference in New Issue
Block a user