mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
rename CONCURRENT to SPROCKETS_CONCURRENT
This commit is contained in:
parent
ba8aec2bc3
commit
d0c5dc9280
@ -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!)
|
||||
|
Loading…
Reference in New Issue
Block a user