πŸ“¦ amarshall / vlad-assets

β˜… 0 stars β‘‚ 0 forks πŸ‘ 0 watching βš–οΈ MIT License
πŸ“₯ Clone https://github.com/amarshall/vlad-assets.git
HTTPS git clone https://github.com/amarshall/vlad-assets.git
SSH git clone git@github.com:amarshall/vlad-assets.git
CLI gh repo clone amarshall/vlad-assets
Andrew Marshall Andrew Marshall Initial commit 7750f7d 13 years ago πŸ“ History
πŸ“‚ master View all commits β†’
πŸ“ lib
πŸ“„ .gitignore
πŸ“„ Gemfile
πŸ“„ LICENSE.txt
πŸ“„ Rakefile
πŸ“„ README.md
πŸ“„ README.md

Vlad Assets

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.

Installation

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

Usage

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.

Contributing

Contributions are welcome. Please be sure that your pull requests are atomic so they can be considered and accepted separately.

  • 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

Credits & License

Copyright Β© 2012 J. Andrew Marshall. All rights reserved. License is available in the LICENSE file.