Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airhorns/sprockets-rails-parallel
https://github.com/airhorns/sprockets-rails-parallel
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/airhorns/sprockets-rails-parallel
- Owner: airhorns
- License: mit
- Created: 2012-05-17T02:57:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-16T17:51:43.000Z (over 12 years ago)
- Last Synced: 2024-09-24T08:06:29.874Z (about 1 month ago)
- Language: Ruby
- Size: 172 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```