Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/airhorns/sprockets-rails-parallel


https://github.com/airhorns/sprockets-rails-parallel

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# sprockets-rails-parallel

sprockets-rails-parallel is a dirty monkeypatchy hack to make `sprockets-rails` use many processes when precompiling assets. It uses zmq, so you'll need that.

## Installation

Add the gem to your gemfile and then in your `config/application.rb` or one of your environment files, add the following lines:

```ruby
config.assets.parallel_precompile = true
config.assets.precompile_workers = Integer `sysctl -n hw.ncpu 2>/dev/null` rescue 1 # or something like this
```