Sha256: 584ae600b5a54aa340e06ce508a8cf2f4b6770066360b822d03a98d3203101f8

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

# Add the code below to your app's unicorn.conf.rb or similar so that assets'
# commit IDs are precached only once by the Unicorn master, then propagated
# out to workers. (Otherwise, each worker will precache commit IDs, which
# wastes resources.) More on configuring Unicorn:
# http://unicorn.bogomips.org/Unicorn/Configurator.html

before_fork do |server, worker|
  AssetHat.cache_last_commit_ids if defined?(AssetHat)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asset_hat-0.4.2 lib/asset_hat/unicorn.rb
asset_hat-0.4.1 lib/asset_hat/unicorn.rb
asset_hat-0.4.0 lib/asset_hat/unicorn.rb