Skip to content

Instantly share code, notes, and snippets.

@xdite
Created June 21, 2011 10:25
Show Gist options
  • Select an option

  • Save xdite/1037574 to your computer and use it in GitHub Desktop.

Select an option

Save xdite/1037574 to your computer and use it in GitHub Desktop.
deploy.rake
require 'jammit'
namespace :jammit do
desc 'Run the jammit asset packaging system'
task :package do
Jammit.package!
end
end
Jammit Capistrano Task
namespace :jammit do
task :package do
run "cd #{deploy_to}/current && rake jammit:package"
end
end
# Run jammit after updating the code
after "deploy:update", "jammit:package"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment