Sha256: b8dcb5db4b715678efae2dad13652e9ddcb715eaca859c1d2198ece017117a49
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
# Capistrano Local Precompile If your Rails apps are anything like mine, one of the slowest parts of your deployment is waiting for asset pipeline precompilation. It's sometimes so slow, it's painful. So I went searching for some solutions. [turbo-sprockets](https://github.com/ndbroadbent/turbo-sprockets-rails3) helped, but it's not a silver bullet. This gem isn't a silver bullet either, but it can help. Capistrano Local Precompile takes a different approach. It builds your assets locally and rsync's them to your web server(s). ## Usage Add capistrano-local-precompile to your Gemfile: ```ruby group :development do # Capistrano v2 should use '~> 0.0.5' # Capistrano v3 should use '~> 1.0.0' # Capistrano v3.8+ should use '~> 1.1.1' gem 'capistrano-local-precompile', '~> 1.1.2', require: false end ``` Then add the following line to your `Capfile`: ```ruby require 'capistrano/local_precompile' ``` Here's the full set of configurable options: ```ruby set :precompile_env # default: fetch(:rails_env) || 'production' set :assets_dir # default: "public/assets" set :packs_dir # default: "public/packs" set :rsync_cmd # default: "rsync -av --delete" ``` ## Acknowledgement This gem is derived from gists by [uhlenbrock][] and [keighl][]. [uhlenbrock]: https://gist.github.com/uhlenbrock/1477596 [keighl]: https://gist.github.com/keighl/4338134 ## Contributing Pull requests welcome: fork, make a topic branch, commit (squash when possible) *with tests* and I'll happily consider. ## Copyright Copyright (c) 2018 Steve Agalloco / Tom Caflisch. See [LICENSE](LICENSE.md) for detail
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-local-precompile-1.1.2 | README.md |