mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
rename CONCURRENT to SPROCKETS_CONCURRENT
This commit is contained in:
parent
ba8aec2bc3
commit
d0c5dc9280
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue