Capistrano::Lazy::Assets
Receipt is taken from http://www.bencurtis.com/2011/12/skipping-asset-compilation-with-capistrano/
Installation
Add this line to your application's Gemfile:
gem 'capistrano-lazy-assets'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-lazy-assets
Usage
Add the gem to your Gemfile
:
group :development do
gem 'capistrano-lazy-assets'
end
Add plugin into your deploy.rb file.
require 'capistrano-lazy-assets'
Check if deploy/config is load after deploy/assets in your Capfile:
load 'deploy'
load 'deploy/assets'
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request