https://github.com/amarshall/vlad-assets.git
Vlad tasks for the Rails asset pipeline. They are very simple, but I found myself duplicating them across all my projects, so this gem was born.
Add this line to your application's Gemfile:
gem 'vlad-assets', :require => false
And then execute:
$ bundle
Or install it yourself as:
$ gem install vlad-assets
Then add to your config/deploy.rb:
require 'vlad/assets'
Two tasks are provided that you can add into your existing deploy task(s):
vlad:assets:clean & vlad:assets:precompile, which are anagolous to
the assets:clean & assets:precompile tasks provided to Rails.
If you are setting shared_paths in your deploy configuration, you should add
{'assets' => 'public/assets'} if you do zero-downtime deploys. This solves
the problem of assets disappearing when the release directory change but the
app has not yet restarted. If you do not set shared_paths manually, Vlad
Assets will do so for youβthough you may prefer to add it to be explicit.
Contributions are welcome. Please be sure that your pull requests are atomic so they can be considered and accepted separately.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Copyright Β© 2012 J. Andrew Marshall. All rights reserved. License is available in the LICENSE file.